Commit 88f7e862469870e2a5b20d4bcbd4bcb7f5e3a996

Authored by yanglingyu
2 parents f3fcfe32 d49d44dd

Merge branch 'master' of http://bj.gitlab.cnlive.com/ios-team/CNLiveVideoClassifyKit

* 'master' of http://bj.gitlab.cnlive.com/ios-team/CNLiveVideoClassifyKit:
  0.8.1
  0.8.0视讯优化

# Conflicts:
#	CNLiveVideoClassifyKit.podspec
CNLiveVideoClassifyKit.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveVideoClassifyKit' 10 s.name = 'CNLiveVideoClassifyKit'
11 - s.version = '0.8.0' 11 + s.version = '0.8.1'
12 s.summary = '视讯头部一二级菜单组件' 12 s.summary = '视讯头部一二级菜单组件'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveVideoClassifyKit/Classes/CNGenesis/ViewController/CNAmuseChinaViewController.m
@@ -974,6 +974,7 @@ @@ -974,6 +974,7 @@
974 if ([isNextPage isEqualToString:@"1"]) { //有下一页 974 if ([isNextPage isEqualToString:@"1"]) { //有下一页
975 weakSelf.pageNo=2; 975 weakSelf.pageNo=2;
976 [weakSelf.collectionView.mj_footer endRefreshing]; 976 [weakSelf.collectionView.mj_footer endRefreshing];
  977 + weakSelf.collectionView.mj_footer.hidden = NO;
977 }else { 978 }else {
978 [weakSelf.collectionView.mj_footer endRefreshingWithNoMoreData]; 979 [weakSelf.collectionView.mj_footer endRefreshingWithNoMoreData];
979 } 980 }
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveClassifySegmentController.m
@@ -49,6 +49,8 @@ static const CGFloat animationHeight = 15; @@ -49,6 +49,8 @@ static const CGFloat animationHeight = 15;
49 @property (nonatomic, strong) NSMutableArray *textColors; //未选中字体颜色 49 @property (nonatomic, strong) NSMutableArray *textColors; //未选中字体颜色
50 @property (nonatomic, strong) NSMutableArray *textColorSeleteds; //选中字体颜色 50 @property (nonatomic, strong) NSMutableArray *textColorSeleteds; //选中字体颜色
51 51
  52 +@property (nonatomic, strong) NSString *selectID;//选中频道ID
  53 +
52 @property (nonatomic, assign) BOOL hasChanged; 54 @property (nonatomic, assign) BOOL hasChanged;
53 @property (nonatomic, assign) BOOL isEditing; 55 @property (nonatomic, assign) BOOL isEditing;
54 @property (nonatomic, assign) BOOL oldStatusBar; 56 @property (nonatomic, assign) BOOL oldStatusBar;
@@ -250,6 +252,14 @@ static const CGFloat animationHeight = 15; @@ -250,6 +252,14 @@ static const CGFloat animationHeight = 15;
250 } 252 }
251 - (void)uploadSubViews 253 - (void)uploadSubViews
252 { 254 {
  255 + if([self.selectID isNotBlank]){
  256 + NSInteger selectIndex = [self containsWithChannelId:self.selectID];
  257 + if (selectIndex != -1){
  258 + self.ld_currentIndex = selectIndex;
  259 + self.myCategoryView.defaultSelectedIndex = self.ld_currentIndex;
  260 + }
  261 + }
  262 +
253 if (self.ld_currentIndex>=self.titles.count) { 263 if (self.ld_currentIndex>=self.titles.count) {
254 self.ld_currentIndex = 0; 264 self.ld_currentIndex = 0;
255 } 265 }
@@ -837,6 +847,7 @@ static const CGFloat animationHeight = 15; @@ -837,6 +847,7 @@ static const CGFloat animationHeight = 15;
837 #pragma mark - JXCategoryListContainerViewDelegate 847 #pragma mark - JXCategoryListContainerViewDelegate
838 - (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index{ 848 - (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index{
839 CNCategoryGetChannelModel *model = self.dataArray[index]; 849 CNCategoryGetChannelModel *model = self.dataArray[index];
  850 + self.selectID = model.id;
840 BOOL isBlack = NO; 851 BOOL isBlack = NO;
841 if (CNLiveStringIsEmpty(model.statusBarColor)) { 852 if (CNLiveStringIsEmpty(model.statusBarColor)) {
842 isBlack = YES; 853 isBlack = YES;
@@ -870,6 +881,7 @@ static const CGFloat animationHeight = 15; @@ -870,6 +881,7 @@ static const CGFloat animationHeight = 15;
870 [self updateSelectColors:index]; 881 [self updateSelectColors:index];
871 [self configCategoryViewWithType:JXCategoryTitleImageType_OnlyImage selectIndex:index unselectIndex:index]; 882 [self configCategoryViewWithType:JXCategoryTitleImageType_OnlyImage selectIndex:index unselectIndex:index];
872 CNCategoryGetChannelModel *model = (CNCategoryGetChannelModel *)[self.dataArray wjj_safetyObjectAtIndex:index]; 883 CNCategoryGetChannelModel *model = (CNCategoryGetChannelModel *)[self.dataArray wjj_safetyObjectAtIndex:index];
  884 + self.selectID = model.id;
873 if (![CNUserShareManager isLogin]) { 885 if (![CNUserShareManager isLogin]) {
874 [BHConfig set:ChannelsSelectFirst value:model.id]; 886 [BHConfig set:ChannelsSelectFirst value:model.id];
875 } 887 }
Example/CNLiveVideoClassifyKit.xcodeproj/project.pbxproj
@@ -583,7 +583,7 @@ @@ -583,7 +583,7 @@
583 GCC_PREFIX_HEADER = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-prefix.pch"; 583 GCC_PREFIX_HEADER = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-prefix.pch";
584 INFOPLIST_FILE = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-Info.plist"; 584 INFOPLIST_FILE = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-Info.plist";
585 IPHONEOS_DEPLOYMENT_TARGET = 10.0; 585 IPHONEOS_DEPLOYMENT_TARGET = 10.0;
586 - MARKETING_VERSION = 1.0; 586 + MARKETING_VERSION = 2.2.2;
587 MODULE_NAME = ExampleApp; 587 MODULE_NAME = ExampleApp;
588 PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 588 PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
589 PRODUCT_NAME = "$(TARGET_NAME)"; 589 PRODUCT_NAME = "$(TARGET_NAME)";
@@ -603,7 +603,7 @@ @@ -603,7 +603,7 @@
603 GCC_PREFIX_HEADER = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-prefix.pch"; 603 GCC_PREFIX_HEADER = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-prefix.pch";
604 INFOPLIST_FILE = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-Info.plist"; 604 INFOPLIST_FILE = "CNLiveVideoClassifyKit/CNLiveVideoClassifyKit-Info.plist";
605 IPHONEOS_DEPLOYMENT_TARGET = 10.0; 605 IPHONEOS_DEPLOYMENT_TARGET = 10.0;
606 - MARKETING_VERSION = 1.0; 606 + MARKETING_VERSION = 2.2.2;
607 MODULE_NAME = ExampleApp; 607 MODULE_NAME = ExampleApp;
608 PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 608 PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
609 PRODUCT_NAME = "$(TARGET_NAME)"; 609 PRODUCT_NAME = "$(TARGET_NAME)";
Example/Podfile.lock
@@ -195,7 +195,7 @@ PODS: @@ -195,7 +195,7 @@ PODS:
195 - CNLiveUserManagement (0.1.6): 195 - CNLiveUserManagement (0.1.6):
196 - CNLiveEnvironment 196 - CNLiveEnvironment
197 - CNLiveNewTripartiteManagement/MJExtension 197 - CNLiveNewTripartiteManagement/MJExtension
198 - - CNLiveVideoClassifyKit (0.7.8): 198 + - CNLiveVideoClassifyKit (0.7.9):
199 - CNLiveBaseKit 199 - CNLiveBaseKit
200 - CNLiveBaseTools 200 - CNLiveBaseTools
201 - CNLiveBeeHive 201 - CNLiveBeeHive
@@ -655,7 +655,7 @@ SPEC CHECKSUMS: @@ -655,7 +655,7 @@ SPEC CHECKSUMS:
655 CNLiveShareToolKit: 224eeab02d85228b29271eb53ad62f92242fed46 655 CNLiveShareToolKit: 224eeab02d85228b29271eb53ad62f92242fed46
656 CNLiveTencentopenapi: d7c4cea634f51cae6aa61286dc3847193246dc6d 656 CNLiveTencentopenapi: d7c4cea634f51cae6aa61286dc3847193246dc6d
657 CNLiveUserManagement: 68b965fff76513c371a321b3c34862578718dc26 657 CNLiveUserManagement: 68b965fff76513c371a321b3c34862578718dc26
658 - CNLiveVideoClassifyKit: 80aac88d05899726e976157df316b9c0b52513f7 658 + CNLiveVideoClassifyKit: 839d07cbcb727fe2b4b08db2cd3c2cc0ed43accc
659 JXCategoryView: 7b1ee69ede4843c581688afe84d0f047723262f2 659 JXCategoryView: 7b1ee69ede4843c581688afe84d0f047723262f2
660 Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 660 Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
661 MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545 661 MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545
@@ -683,4 +683,4 @@ SPEC CHECKSUMS: @@ -683,4 +683,4 @@ SPEC CHECKSUMS:
683 683
684 PODFILE CHECKSUM: 6491e4045e4ae937b78cb644deaa04fb626a1aef 684 PODFILE CHECKSUM: 6491e4045e4ae937b78cb644deaa04fb626a1aef
685 685
686 -COCOAPODS: 1.11.3 686 +COCOAPODS: 1.11.2