Commit a30c0828b9f2a41a0729089c7f15cadfc2b919c5
1 parent
847a7988
0.0.3
Showing
4 changed files
with
104 additions
and
1 deletions
CNLiveBaseClass.podspec
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | |
| 9 | 9 | Pod::Spec.new do |s| |
| 10 | 10 | s.name = 'CNLiveBaseClass' |
| 11 | - s.version = '0.0.2' | |
| 11 | + s.version = '0.0.3' | |
| 12 | 12 | s.summary = 'CNLiveBaseClass' |
| 13 | 13 | |
| 14 | 14 | # This description is used to generate tags and improve search results. |
| ... | ... | @@ -47,5 +47,6 @@ TODO: 网家家-基类. |
| 47 | 47 | # s.public_header_files = 'Pod/Classes/**/*.h' |
| 48 | 48 | # s.frameworks = 'UIKit', 'MapKit' |
| 49 | 49 | # s.dependency 'AFNetworking', '~> 2.3' |
| 50 | + s.dependency 'CNLiveBaseKit' | |
| 50 | 51 | |
| 51 | 52 | end | ... | ... |
CNLiveBaseClass/Classes/Controller/CNLiveBCommonTableViewController.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveBCommonTableViewController.h | |
| 3 | +// CNLiveBaseClass | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2020/4/16. | |
| 6 | +// | |
| 7 | + | |
| 8 | +#import <QMUIKit/QMUIKit.h> | |
| 9 | + | |
| 10 | +NS_ASSUME_NONNULL_BEGIN | |
| 11 | + | |
| 12 | +@interface CNLiveBCommonTableViewController : QMUICommonTableViewController | |
| 13 | + | |
| 14 | +@end | |
| 15 | + | |
| 16 | +NS_ASSUME_NONNULL_END | ... | ... |
CNLiveBaseClass/Classes/Controller/CNLiveBCommonTableViewController.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveBCommonTableViewController.m | |
| 3 | +// CNLiveBaseClass | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2020/4/16. | |
| 6 | +// | |
| 7 | + | |
| 8 | +#import "CNLiveBCommonTableViewController.h" | |
| 9 | +#import <CNLiveBaseKit/CNLiveBaseKit.h> | |
| 10 | +@interface CNLiveBCommonTableViewController () | |
| 11 | + | |
| 12 | +@end | |
| 13 | + | |
| 14 | +@implementation CNLiveBCommonTableViewController | |
| 15 | +- (void)viewWillAppear:(BOOL)animated | |
| 16 | +{ | |
| 17 | + [super viewWillAppear:animated]; | |
| 18 | + self.tabBarController.tabBar.hidden = YES; | |
| 19 | +} | |
| 20 | + | |
| 21 | +- (void)viewWillDisappear:(BOOL)animated | |
| 22 | +{ | |
| 23 | + [super viewWillDisappear:animated]; | |
| 24 | + | |
| 25 | +} | |
| 26 | + | |
| 27 | +-(void)viewDidAppear:(BOOL)animated | |
| 28 | +{ | |
| 29 | + [super viewDidAppear:animated]; | |
| 30 | + if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) { | |
| 31 | + self.navigationController.interactivePopGestureRecognizer.enabled = YES; | |
| 32 | + } | |
| 33 | +} | |
| 34 | + | |
| 35 | +- (void)viewDidLoad { | |
| 36 | + [super viewDidLoad]; | |
| 37 | + // Do any additional setup after loading the view. | |
| 38 | + if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) { | |
| 39 | + self.navigationController.interactivePopGestureRecognizer.enabled = NO; | |
| 40 | + } | |
| 41 | +} | |
| 42 | + | |
| 43 | +- (void)initSubviews | |
| 44 | +{ | |
| 45 | + [super initSubviews]; | |
| 46 | + if (@available(iOS 11.0, *)) { | |
| 47 | + self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; | |
| 48 | + } else { | |
| 49 | + self.automaticallyAdjustsScrollViewInsets = NO; | |
| 50 | + } | |
| 51 | + self.tableView.top = kNavigationBarHeight; | |
| 52 | + self.tableView.height = KScreenHeight - kNavigationBarHeight - kVerticalTabBarTotalHeight; | |
| 53 | +} | |
| 54 | + | |
| 55 | +- (UIStatusBarStyle)preferredStatusBarStyle | |
| 56 | +{ | |
| 57 | + return UIStatusBarStyleDefault; | |
| 58 | +} | |
| 59 | + | |
| 60 | +- (BOOL)shouldAutorotate | |
| 61 | +{ | |
| 62 | + return NO; | |
| 63 | +} | |
| 64 | + | |
| 65 | +- (UIInterfaceOrientationMask)supportedOrientationMask | |
| 66 | +{ | |
| 67 | + return UIInterfaceOrientationMaskPortrait; | |
| 68 | +} | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | +/* | |
| 73 | +#pragma mark - Navigation | |
| 74 | + | |
| 75 | +// In a storyboard-based application, you will often want to do a little preparation before navigation | |
| 76 | +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | |
| 77 | + // Get the new view controller using [segue destinationViewController]. | |
| 78 | + // Pass the selected object to the new view controller. | |
| 79 | +} | |
| 80 | +*/ | |
| 81 | + | |
| 82 | +@end | ... | ... |
Example/CNLiveBaseClass.xcodeproj/project.pbxproj
| ... | ... | @@ -328,9 +328,11 @@ |
| 328 | 328 | inputPaths = ( |
| 329 | 329 | "${PODS_ROOT}/Target Support Files/Pods-CNLiveBaseClass_Example/Pods-CNLiveBaseClass_Example-frameworks.sh", |
| 330 | 330 | "${BUILT_PRODUCTS_DIR}/CNLiveBaseClass/CNLiveBaseClass.framework", |
| 331 | + "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework", | |
| 331 | 332 | "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework", |
| 332 | 333 | "${BUILT_PRODUCTS_DIR}/CNLiveCustomControl/CNLiveCustomControl.framework", |
| 333 | 334 | "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework", |
| 335 | + "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework", | |
| 334 | 336 | "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework", |
| 335 | 337 | "${BUILT_PRODUCTS_DIR}/QMUIKit/QMUIKit.framework", |
| 336 | 338 | "${BUILT_PRODUCTS_DIR}/WebViewJavascriptBridge/WebViewJavascriptBridge.framework", |
| ... | ... | @@ -338,9 +340,11 @@ |
| 338 | 340 | name = "[CP] Embed Pods Frameworks"; |
| 339 | 341 | outputPaths = ( |
| 340 | 342 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseClass.framework", |
| 343 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework", | |
| 341 | 344 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework", |
| 342 | 345 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCustomControl.framework", |
| 343 | 346 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework", |
| 347 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework", | |
| 344 | 348 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework", |
| 345 | 349 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QMUIKit.framework", |
| 346 | 350 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WebViewJavascriptBridge.framework", | ... | ... |