Commit efef1433a69af6ff2f842f3c630e6666dafd212a

Authored by yanglingyu
1 parent fdb67b04

适配

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.0.31' 11 + s.version = '0.0.32'
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.
@@ -46,6 +46,7 @@ Pod::Spec.new do |s| @@ -46,6 +46,7 @@ Pod::Spec.new do |s|
46 s.dependency 'CNLiveBaseKit' 46 s.dependency 'CNLiveBaseKit'
47 s.dependency 'CNLiveCategory' 47 s.dependency 'CNLiveCategory'
48 s.dependency 'CNLiveUserManagement' 48 s.dependency 'CNLiveUserManagement'
  49 + s.dependency 'CNLiveBusinessBaseModule'
49 s.dependency 'CNLiveCommonCategory' 50 s.dependency 'CNLiveCommonCategory'
50 s.dependency 'CNLiveBeeHive' 51 s.dependency 'CNLiveBeeHive'
51 s.dependency 'CNLiveEnvironment' 52 s.dependency 'CNLiveEnvironment'
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveClassifySegmentController.m
@@ -766,7 +766,7 @@ static const CGFloat animationHeight = 15; @@ -766,7 +766,7 @@ static const CGFloat animationHeight = 15;
766 CNLiveSubSegmentController *subVC = [[CNLiveSubSegmentController alloc] initWithModel:model]; 766 CNLiveSubSegmentController *subVC = [[CNLiveSubSegmentController alloc] initWithModel:model];
767 subVC.showType = CNLiveSubVCShowtypeChannel; 767 subVC.showType = CNLiveSubVCShowtypeChannel;
768 subVC.isBlack = isBlack; 768 subVC.isBlack = isBlack;
769 - [self.navigationController pushViewController:subVC animated:YES]; 769 + [[BaseAppDelegate sharedAppDelegate] pushViewController:subVC];
770 770
771 }else{ 771 }else{
772 if([model.pageType isEqualToString:@"4"] || [model.pageType isEqualToString:@"5"]){ 772 if([model.pageType isEqualToString:@"4"] || [model.pageType isEqualToString:@"5"]){
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveListController.m
@@ -83,6 +83,9 @@ @@ -83,6 +83,9 @@
83 if (([CNLiveListController searchProperties:[vc class] string:@"webView"]||[CNLiveListController searchProperties:[vc.superclass class] string:@"webView"])&&[vc valueForKey:@"webView"]&&[[vc valueForKey:@"webView"] isKindOfClass:[WKWebView class]]) { 83 if (([CNLiveListController searchProperties:[vc class] string:@"webView"]||[CNLiveListController searchProperties:[vc.superclass class] string:@"webView"])&&[vc valueForKey:@"webView"]&&[[vc valueForKey:@"webView"] isKindOfClass:[WKWebView class]]) {
84 WKWebView *webView = (WKWebView *)[vc valueForKey:@"webView"]; 84 WKWebView *webView = (WKWebView *)[vc valueForKey:@"webView"];
85 [webView.scrollView addObserver:self forKeyPath:@"contentOffset" options:NSKeyValueObservingOptionNew context:nil]; 85 [webView.scrollView addObserver:self forKeyPath:@"contentOffset" options:NSKeyValueObservingOptionNew context:nil];
  86 + [webView mas_makeConstraints:^(MASConstraintMaker *make) {
  87 + make.edges.equalTo(self.view);
  88 + }];
86 if (!self.isLoading) { 89 if (!self.isLoading) {
87 [webView.scrollView.mj_header beginRefreshing]; 90 [webView.scrollView.mj_header beginRefreshing];
88 } 91 }
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveSubSegmentController.m
@@ -191,7 +191,7 @@ @@ -191,7 +191,7 @@
191 self.myCategoryView.top = 0; 191 self.myCategoryView.top = 0;
192 } 192 }
193 193
194 - self.listContainerView.frame = CGRectMake(0, self.myCategoryView.bottom+10, kScreenWidth, self.view.bounds.size.height - self.myCategoryView.bottom); 194 + self.listContainerView.frame = CGRectMake(0, self.myCategoryView.bottom+10, kScreenWidth, self.view.bounds.size.height - self.myCategoryView.bottom -10);
195 self.searchBtn.right = KScreenWidth-12; 195 self.searchBtn.right = KScreenWidth-12;
196 CGFloat width = self.searchBtn.left; 196 CGFloat width = self.searchBtn.left;
197 self.searchBtn.centerY = self.myCategoryView.height/2; 197 self.searchBtn.centerY = self.myCategoryView.height/2;
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Header/CNLivevideoClassifyPCH.h
@@ -21,6 +21,7 @@ @@ -21,6 +21,7 @@
21 #import <CNLiveBeeHive/BHConfig.h> 21 #import <CNLiveBeeHive/BHConfig.h>
22 #import <CNLiveEnvironment/CNLiveEnvironment.h> 22 #import <CNLiveEnvironment/CNLiveEnvironment.h>
23 #import <CNLiveCustomControl/CNLiveNavigationBar.h> 23 #import <CNLiveCustomControl/CNLiveNavigationBar.h>
  24 +#import <CNLiveBusinessBaseModule/CNLiveBusinessBaseModule.h>
24 #import <MJExtension/MJExtension.h> 25 #import <MJExtension/MJExtension.h>
25 //#import <UMCommon/MobClick.h> 26 //#import <UMCommon/MobClick.h>
26 #import <MJRefresh/MJRefresh.h> 27 #import <MJRefresh/MJRefresh.h>
Example/CNLiveVideoClassifyKit.xcodeproj/project.pbxproj
@@ -379,6 +379,7 @@ @@ -379,6 +379,7 @@
379 "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework", 379 "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework",
380 "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework", 380 "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework",
381 "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework", 381 "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework",
  382 + "${BUILT_PRODUCTS_DIR}/CNLiveBusinessBaseModule/CNLiveBusinessBaseModule.framework",
382 "${BUILT_PRODUCTS_DIR}/CNLiveBusinessTools/CNLiveBusinessTools.framework", 383 "${BUILT_PRODUCTS_DIR}/CNLiveBusinessTools/CNLiveBusinessTools.framework",
383 "${BUILT_PRODUCTS_DIR}/CNLiveCWebViewModule/CNLiveCWebViewModule.framework", 384 "${BUILT_PRODUCTS_DIR}/CNLiveCWebViewModule/CNLiveCWebViewModule.framework",
384 "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework", 385 "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework",
@@ -412,6 +413,7 @@ @@ -412,6 +413,7 @@
412 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework", 413 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework",
413 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework", 414 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework",
414 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework", 415 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework",
  416 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBusinessBaseModule.framework",
415 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBusinessTools.framework", 417 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBusinessTools.framework",
416 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCWebViewModule.framework", 418 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCWebViewModule.framework",
417 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework", 419 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework",
Example/CNLiveVideoClassifyKit/CNLIVEAppDelegate.h
@@ -7,9 +7,8 @@ @@ -7,9 +7,8 @@
7 // 7 //
8 8
9 @import UIKit; 9 @import UIKit;
  10 +#import <CNLiveBusinessBaseModule/CNLiveBusinessBaseModule.h>
10 11
11 -@interface CNLIVEAppDelegate : UIResponder <UIApplicationDelegate>  
12 -  
13 -@property (strong, nonatomic) UIWindow *window; 12 +@interface CNLIVEAppDelegate : BaseAppDelegate <UIApplicationDelegate>
14 13
15 @end 14 @end
Example/Podfile.lock
@@ -17,6 +17,32 @@ PODS: @@ -17,6 +17,32 @@ PODS:
17 - CNLiveBaseKit (0.1.23): 17 - CNLiveBaseKit (0.1.23):
18 - CNLiveNewTripartiteManagement/MJExtension 18 - CNLiveNewTripartiteManagement/MJExtension
19 - CNLiveBeeHive (0.1.9) 19 - CNLiveBeeHive (0.1.9)
  20 + - CNLiveBServices (0.1.3.9):
  21 + - CNLiveBeeHive
  22 + - CNLiveBServices/Live (= 0.1.3.9)
  23 + - CNLiveBServices/Login (= 0.1.3.9)
  24 + - CNLiveBServices/Message (= 0.1.3.9)
  25 + - CNLiveBServices/Mine (= 0.1.3.9)
  26 + - CNLiveBServices/Service (= 0.1.3.9)
  27 + - CNLiveBServices/Live (0.1.3.9):
  28 + - CNLiveBeeHive
  29 + - CNLiveBServices/Login (0.1.3.9):
  30 + - CNLiveBeeHive
  31 + - CNLiveBServices/Message (0.1.3.9):
  32 + - CNLiveBeeHive
  33 + - CNLiveBServices/Mine (0.1.3.9):
  34 + - CNLiveBeeHive
  35 + - CNLiveBServices/Service (0.1.3.9):
  36 + - CNLiveBeeHive
  37 + - CNLiveBusinessBaseModule (0.2.0):
  38 + - CNLiveBaseKit
  39 + - CNLiveBeeHive
  40 + - CNLiveBServices
  41 + - CNLiveCommonCategory
  42 + - CNLiveEnvironment
  43 + - CNLiveNewTripartiteManagement/QMUIKit
  44 + - CNLiveRequestBastKit
  45 + - CNLiveUserManagement
20 - CNLiveBusinessTools (0.1.27): 46 - CNLiveBusinessTools (0.1.27):
21 - CNLiveBaseKit 47 - CNLiveBaseKit
22 - CNLiveEnvironment 48 - CNLiveEnvironment
@@ -136,9 +162,10 @@ PODS: @@ -136,9 +162,10 @@ PODS:
136 - CNLiveSDK/CNLiveStat (0.3.4.8) 162 - CNLiveSDK/CNLiveStat (0.3.4.8)
137 - CNLiveUserManagement (0.1.5): 163 - CNLiveUserManagement (0.1.5):
138 - CNLiveNewTripartiteManagement/MJExtension 164 - CNLiveNewTripartiteManagement/MJExtension
139 - - CNLiveVideoClassifyKit (0.0.30): 165 + - CNLiveVideoClassifyKit (0.0.31):
140 - CNLiveBaseKit 166 - CNLiveBaseKit
141 - CNLiveBeeHive 167 - CNLiveBeeHive
  168 + - CNLiveBusinessBaseModule
142 - CNLiveCategory 169 - CNLiveCategory
143 - CNLiveCommonCategory 170 - CNLiveCommonCategory
144 - CNLiveCustomControl 171 - CNLiveCustomControl
@@ -511,6 +538,8 @@ SPEC REPOS: @@ -511,6 +538,8 @@ SPEC REPOS:
511 http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git: 538 http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git:
512 - CNLiveBaseKit 539 - CNLiveBaseKit
513 - CNLiveBeeHive 540 - CNLiveBeeHive
  541 + - CNLiveBServices
  542 + - CNLiveBusinessBaseModule
514 - CNLiveBusinessTools 543 - CNLiveBusinessTools
515 - CNLiveCategory 544 - CNLiveCategory
516 - CNLiveCommonCategory 545 - CNLiveCommonCategory
@@ -553,6 +582,8 @@ SPEC CHECKSUMS: @@ -553,6 +582,8 @@ SPEC CHECKSUMS:
553 AFNetworking: 7864c38297c79aaca1500c33288e429c3451fdce 582 AFNetworking: 7864c38297c79aaca1500c33288e429c3451fdce
554 CNLiveBaseKit: 44e5fc573cbca78a86b704cf77c886ef53889807 583 CNLiveBaseKit: 44e5fc573cbca78a86b704cf77c886ef53889807
555 CNLiveBeeHive: 1e105b15b6ccaad546258fcf91231563beb853d4 584 CNLiveBeeHive: 1e105b15b6ccaad546258fcf91231563beb853d4
  585 + CNLiveBServices: 747c8c6c8d300c4daaeb108027c5886c66ed02ce
  586 + CNLiveBusinessBaseModule: 1d2eee2e04c8db762781b7ad45278d043db56748
556 CNLiveBusinessTools: dfd3270d885523be2599bdc3a95a416277682d0d 587 CNLiveBusinessTools: dfd3270d885523be2599bdc3a95a416277682d0d
557 CNLiveCategory: c90a01af1e20cd89f47d4f551d47d2ddc9ca96f3 588 CNLiveCategory: c90a01af1e20cd89f47d4f551d47d2ddc9ca96f3
558 CNLiveCommonCategory: 22c9842b31f2087803ae69e983b2c944fb80eae1 589 CNLiveCommonCategory: 22c9842b31f2087803ae69e983b2c944fb80eae1
@@ -564,7 +595,7 @@ SPEC CHECKSUMS: @@ -564,7 +595,7 @@ SPEC CHECKSUMS:
564 CNLiveRequestBastKit: 9fe28913b94a0a072298eba3356f17b98ef0b6cd 595 CNLiveRequestBastKit: 9fe28913b94a0a072298eba3356f17b98ef0b6cd
565 CNLiveSDK: 75bafaafbb8c09dcb4420adfe0f05130405b25e7 596 CNLiveSDK: 75bafaafbb8c09dcb4420adfe0f05130405b25e7
566 CNLiveUserManagement: ead053f2d701b01ea8fb5f1da572be788f2dd3cf 597 CNLiveUserManagement: ead053f2d701b01ea8fb5f1da572be788f2dd3cf
567 - CNLiveVideoClassifyKit: 69256224dd4833a46653960b28576b9f42574e24 598 + CNLiveVideoClassifyKit: d36f2503ac8103369634f70f53df3ccc7b9a84d1
568 FWDebug: 5a20d089a300517153de1438d8128ad4c4690951 599 FWDebug: 5a20d089a300517153de1438d8128ad4c4690951
569 JXCategoryView: 2ef9ecfd3735158d009ce02d1f29811aa822da65 600 JXCategoryView: 2ef9ecfd3735158d009ce02d1f29811aa822da65
570 Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 601 Masonry: 678fab65091a9290e40e2832a55e7ab731aad201