更新pod库
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 782 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -5,7 +5,6 @@
|
||||
|
||||
#import "DDBaseNavigationController.h"
|
||||
#import "DDNavigationControllerDelegateReceiver.h"
|
||||
#import <DDLogKit_Private/DDOCLog.h>
|
||||
|
||||
@interface DDBaseNavigationController ()
|
||||
@property (nullable , nonatomic, strong)DDNavigationControllerDelegateReceiver *delegateReceiver;
|
||||
@@ -101,8 +100,4 @@
|
||||
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
|
||||
return self.topViewController.preferredInterfaceOrientationForPresentation;
|
||||
}
|
||||
// MARK: <Dealloc>
|
||||
- (void)dealloc{
|
||||
DDLog(@"Attention:控制器 ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----%@ dealloc",[self class]);
|
||||
}
|
||||
@end
|
||||
|
||||
@@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@property (nonatomic, strong, nullable) UIView *dd_navigationItemTitleView;
|
||||
|
||||
@property (nonatomic, strong, nullable) UIBarButtonItem *dd_backBarButtonItem; // This item contains a customView consist of a button.
|
||||
@property (nonatomic, strong, nullable) UIBarButtonItem *dd_backBarButtonItem; //Default custom backItem, This item contains a customView consist of a button.
|
||||
|
||||
- (void)defaultBackActionPopViewController; // default back action
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
#import "DDBaseViewController.h"
|
||||
#import <DDCategoryKit_Private/UIImage+DDCategory.h>
|
||||
#import <DDLogKit_Private/DDOCLog.h>
|
||||
|
||||
@interface DDBaseViewController ()
|
||||
|
||||
@@ -69,9 +68,26 @@
|
||||
[self dd_backActionPopViewController:YES];
|
||||
}
|
||||
|
||||
// MARK: <View Config>
|
||||
- (void)configView{
|
||||
self.view.backgroundColor = [UIColor whiteColor];
|
||||
}
|
||||
|
||||
// MARK: <NavigationItemTitle>
|
||||
- (void)setDd_navigationItemTitle:(NSString *)navigationItemTitle{
|
||||
_dd_navigationItemTitle = navigationItemTitle;
|
||||
self.navigationItem.title = navigationItemTitle;
|
||||
}
|
||||
|
||||
- (void)setDd_navigationItemTitleView:(UIView *)navigationItemTitleView{
|
||||
_dd_navigationItemTitleView = navigationItemTitleView;
|
||||
self.navigationItem.titleView = navigationItemTitleView;
|
||||
}
|
||||
|
||||
// MARK: <Convenient Function>
|
||||
- (void)dd_backButtonWithImage:(nullable UIImage *)backButtonImage action:(SEL)sel{
|
||||
self.navigationItem.leftBarButtonItems = nil;
|
||||
self.navigationItem.leftBarButtonItems = [self dd_backBarButtonItem:[self barButtonItemWithImage:backButtonImage title:nil target:self action:sel] WithOtherItems:nil];
|
||||
self.navigationItem.leftBarButtonItems = [self backBarButtonItem:[self barButtonItemWithImage:backButtonImage title:nil target:self action:sel] withOtherItems:nil];
|
||||
}
|
||||
|
||||
- (nullable UIBarButtonItem *)barButtonItemWithImage:(nullable UIImage *)image title:(nullable NSString *)title target:(nullable id)target action:(nullable SEL)action {
|
||||
@@ -85,7 +101,7 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (nullable NSArray<UIBarButtonItem *> *)dd_backBarButtonItem:(nonnull UIBarButtonItem *)backBarButtonItem WithOtherItems:(nullable NSArray<UIBarButtonItem *> *)items{
|
||||
- (nullable NSArray<UIBarButtonItem *> *)backBarButtonItem:(nonnull UIBarButtonItem *)backBarButtonItem withOtherItems:(nullable NSArray<UIBarButtonItem *> *)items{
|
||||
|
||||
_dd_backBarButtonItem = backBarButtonItem;
|
||||
|
||||
@@ -103,31 +119,6 @@
|
||||
[self.navigationController popToRootViewControllerAnimated:isAnimated];
|
||||
}
|
||||
|
||||
// MARK: <View>
|
||||
- (void)configView{
|
||||
// self.view.backgroundColor = [UIColor whiteColor];
|
||||
}
|
||||
|
||||
// MARK: <NavigationItemTitle>
|
||||
- (void)setDd_navigationItemTitle:(NSString *)navigationItemTitle{
|
||||
_dd_navigationItemTitle = navigationItemTitle;
|
||||
self.navigationItem.title = navigationItemTitle;
|
||||
}
|
||||
|
||||
- (void)setDd_navigationItemTitleView:(UIView *)navigationItemTitleView{
|
||||
_dd_navigationItemTitleView = navigationItemTitleView;
|
||||
self.navigationItem.titleView = navigationItemTitleView;
|
||||
}
|
||||
|
||||
// MARK: <UIStatusBarStyle>
|
||||
- (UIStatusBarStyle)preferredStatusBarStyle{
|
||||
return UIStatusBarStyleDefault;
|
||||
}
|
||||
|
||||
- (BOOL)prefersStatusBarHidden{
|
||||
return NO;
|
||||
}
|
||||
|
||||
// MARK: <UIOrientation>
|
||||
- (void)dd_setInterfaceOrientation:(UIInterfaceOrientation)orientation {
|
||||
if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) {
|
||||
@@ -140,9 +131,4 @@
|
||||
[invocation invoke];
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: <Dealloc>
|
||||
- (void)dealloc{
|
||||
DDLog(@"Attention:控制器 ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----%@ dealloc",[self class]);
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user