更新pod库

This commit is contained in:
DDIsFriend
2023-10-26 14:27:48 +08:00
parent 7f1f4db368
commit 278894fb88
15 changed files with 739 additions and 786 deletions

View File

@@ -1,6 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -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

View File

@@ -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

View File

@@ -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