Commit 4f738ae25466f8bfc27c08efe586c73025e35583
1 parent
dc2271c7
0.7.0
Showing
7 changed files
with
10 additions
and
7 deletions
CNLiveVideoClassifyKit.podspec
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNCategoryBaseViewController.h
| ... | ... | @@ -6,10 +6,11 @@ |
| 6 | 6 | //分类试图控制器基类 |
| 7 | 7 | |
| 8 | 8 | #import <JXCategoryView/JXCategoryView.h> |
| 9 | +#import <CNLiveBusinessBaseModule/CNCommonViewController.h> | |
| 9 | 10 | |
| 10 | 11 | NS_ASSUME_NONNULL_BEGIN |
| 11 | 12 | |
| 12 | -@interface CNCategoryBaseViewController : UIViewController<JXCategoryViewDelegate,JXCategoryListContainerViewDelegate> | |
| 13 | +@interface CNCategoryBaseViewController : CNCommonViewController<JXCategoryViewDelegate,JXCategoryListContainerViewDelegate> | |
| 13 | 14 | |
| 14 | 15 | @property (nonatomic, strong) JXCategoryBaseView *categoryView; //分类控制器 |
| 15 | 16 | @property (nonatomic, strong) JXCategoryListContainerView *listContainerView;//分类控制器对应VC管理器 | ... | ... |
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNCategoryBaseViewController.m
| ... | ... | @@ -28,6 +28,9 @@ |
| 28 | 28 | self.categoryView.frame = CGRectMake(0, kStatusHeight, self.view.bounds.size.width, [self preferredCategoryViewHeight]); |
| 29 | 29 | self.listContainerView.frame = CGRectMake(0, [self preferredCategoryViewHeight], self.view.bounds.size.width, self.view.bounds.size.height); |
| 30 | 30 | } |
| 31 | +- (BOOL)preferredNavigationBarHidden{ | |
| 32 | + return YES; | |
| 33 | +} | |
| 31 | 34 | #pragma mark - Public |
| 32 | 35 | - (void)categoryViewSelectedItemAtIndex:(NSInteger)index |
| 33 | 36 | { | ... | ... |
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveClassifySegmentController.m
| ... | ... | @@ -212,7 +212,6 @@ static const CGFloat animationHeight = 15; |
| 212 | 212 | [[NSNotificationCenter defaultCenter] postNotificationName:kCNLiveDeepLinkPushNotification object:nil]; |
| 213 | 213 | [[NSNotificationCenter defaultCenter] postNotificationName:kCNLiveRemotePushNotification object:nil]; |
| 214 | 214 | } |
| 215 | - self.navigationController.navigationBarHidden = YES; | |
| 216 | 215 | [[NSUserDefaults standardUserDefaults] setBool:YES forKey:CNLiveLaunchWithFirsh]; |
| 217 | 216 | [[NSUserDefaults standardUserDefaults] synchronize]; |
| 218 | 217 | self.tabBarController.tabBar.hidden = NO; |
| ... | ... | @@ -228,7 +227,6 @@ static const CGFloat animationHeight = 15; |
| 228 | 227 | - (void)viewWillDisappear:(BOOL)animated { |
| 229 | 228 | [super viewWillDisappear:animated]; |
| 230 | 229 | [self quitCustomChannels]; |
| 231 | - self.navigationController.navigationBarHidden = NO; | |
| 232 | 230 | self.navigationController.interactivePopGestureRecognizer.enabled = NO; |
| 233 | 231 | } |
| 234 | 232 | - (void)dealloc | ... | ... |
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveListController.h
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveListController.m
CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveSubSegmentController.m