Commit 92ffb2be23a9fe5edea92c32fb3be74e20d87563
1 parent
bcaa79b0
0.0.15
Showing
40 changed files
with
1866 additions
and
1 deletions
DSBaseModuleF.podspec
| 1 | Pod::Spec.new do |s| | 1 | Pod::Spec.new do |s| |
| 2 | 2 | ||
| 3 | s.name = "DSBaseModuleF" | 3 | s.name = "DSBaseModuleF" |
| 4 | - s.version = "0.0.14" | 4 | + s.version = "0.0.15" |
| 5 | s.summary = "DSBaseModuleF" | 5 | s.summary = "DSBaseModuleF" |
| 6 | s.homepage = "http://bj.gitlab.cnlive.com/DSIOSTeam" | 6 | s.homepage = "http://bj.gitlab.cnlive.com/DSIOSTeam" |
| 7 | s.authors = { "DSIOSTeam" => "694092596@qq.com" } | 7 | s.authors = { "DSIOSTeam" => "694092596@qq.com" } |
| @@ -10,4 +10,11 @@ Pod::Spec.new do |s| | @@ -10,4 +10,11 @@ Pod::Spec.new do |s| | ||
| 10 | s.ios.deployment_target = '9.0' | 10 | s.ios.deployment_target = '9.0' |
| 11 | s.vendored_frameworks = "DSBaseModuleF/Frameworks/DSBaseModule.framework" | 11 | s.vendored_frameworks = "DSBaseModuleF/Frameworks/DSBaseModule.framework" |
| 12 | 12 | ||
| 13 | + s.dependency 'QMUIKit', '4.0.2' | ||
| 14 | + s.dependency 'Masonry', '1.1.0' | ||
| 15 | + s.dependency 'SDWebImage', '~> 5.2.3' | ||
| 16 | + s.dependency 'MJRefresh', '3.2.0' | ||
| 17 | + s.dependency 'MBProgressHUD', '1.1.0' | ||
| 18 | + s.dependency 'DSGTMBase64' | ||
| 19 | + | ||
| 13 | end | 20 | end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/DSBaseModule
No preview for this file type
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSBaseModule-umbrella.h
| @@ -15,6 +15,41 @@ | @@ -15,6 +15,41 @@ | ||
| 15 | #import "DSBaseModuleInline.h" | 15 | #import "DSBaseModuleInline.h" |
| 16 | #import "DSBaseModuleMacro.h" | 16 | #import "DSBaseModuleMacro.h" |
| 17 | #import "DSBaseModuleManager.h" | 17 | #import "DSBaseModuleManager.h" |
| 18 | +#import "DSBaseViewController.h" | ||
| 19 | +#import "DSNavButton.h" | ||
| 20 | +#import "DSCollectionView.h" | ||
| 21 | +#import "DSEmptyView.h" | ||
| 22 | +#import "UIView+DSEmptyView.h" | ||
| 23 | +#import "DSImageManager.h" | ||
| 24 | +#import "DSImageView+DSBaseControlsModule.h" | ||
| 25 | +#import "DSImageView.h" | ||
| 26 | +#import "DSPercentDrivenInteractiveTransition.h" | ||
| 27 | +#import "DSTransitionAnimater.h" | ||
| 28 | +#import "DSTransitionEnum.h" | ||
| 29 | +#import "DSViewControllerNaviDelegate.h" | ||
| 30 | +#import "NSObject+DSNavExtension.h" | ||
| 31 | +#import "UIViewController+DSNavExtension.h" | ||
| 32 | +#import "DSRoundedRectView.h" | ||
| 33 | +#import "UIView+DSRoundedRectView.h" | ||
| 34 | +#import "DSScrollView.h" | ||
| 35 | +#import "DSTabBar.h" | ||
| 36 | +#import "DSTabBarButton.h" | ||
| 37 | +#import "DSTabBarViewController.h" | ||
| 38 | +#import "DSTableView.h" | ||
| 39 | +#import "DSTableViewCell.h" | ||
| 40 | +#import "MKMapView+DSEMExtension.h" | ||
| 41 | +#import "NSAttributedString+DSEMExtension.h" | ||
| 42 | +#import "NSDate+DSEMExtension.h" | ||
| 43 | +#import "NSObject+DSEMExtension.h" | ||
| 44 | +#import "NSString+DSEMExtension.h" | ||
| 45 | +#import "NSUserDefaults+DSEMExtension.h" | ||
| 46 | +#import "UIColor+DSEMExtension.h" | ||
| 47 | +#import "UIImage+DSEMExtension.h" | ||
| 48 | +#import "UIImageView+DSEMExtension.h" | ||
| 49 | +#import "UILabel+DSEMExtension.h" | ||
| 50 | +#import "UIScrollView+DSEMExtension.h" | ||
| 51 | +#import "UITextField+DSEMExtension.h" | ||
| 52 | +#import "UIView+DSEMExtension.h" | ||
| 18 | 53 | ||
| 19 | FOUNDATION_EXPORT double DSBaseModuleVersionNumber; | 54 | FOUNDATION_EXPORT double DSBaseModuleVersionNumber; |
| 20 | FOUNDATION_EXPORT const unsigned char DSBaseModuleVersionString[]; | 55 | FOUNDATION_EXPORT const unsigned char DSBaseModuleVersionString[]; |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSBaseModule.h
| @@ -14,4 +14,37 @@ | @@ -14,4 +14,37 @@ | ||
| 14 | #import "DSBaseModuleConstant.h" | 14 | #import "DSBaseModuleConstant.h" |
| 15 | #import "DSBaseModuleManager.h" | 15 | #import "DSBaseModuleManager.h" |
| 16 | 16 | ||
| 17 | +#import "NSObject+DSEMExtension.h" | ||
| 18 | +#import "NSDate+DSEMExtension.h" | ||
| 19 | +#import "NSUserDefaults+DSEMExtension.h" | ||
| 20 | +#import "UIView+DSEMExtension.h" | ||
| 21 | +#import "NSString+DSEMExtension.h" | ||
| 22 | +#import "UIImageView+DSEMExtension.h" | ||
| 23 | +#import "UIImage+DSEMExtension.h" | ||
| 24 | +#import "UILabel+DSEMExtension.h" | ||
| 25 | +#import "NSAttributedString+DSEMExtension.h" | ||
| 26 | +#import "UITextField+DSEMExtension.h" | ||
| 27 | +#import "UIScrollView+DSEMExtension.h" | ||
| 28 | +#import "UIColor+DSEMExtension.h" | ||
| 29 | +#import "MKMapView+DSEMExtension.h" | ||
| 30 | + | ||
| 31 | +#import "DSBaseViewController.h" | ||
| 32 | +#import "DSTabBarViewController.h" | ||
| 33 | +#import "DSTabBar.h" | ||
| 34 | +#import "DSTabBarButton.h" | ||
| 35 | +#import "DSScrollView.h" | ||
| 36 | +#import "DSCollectionView.h" | ||
| 37 | +#import "DSTableView.h" | ||
| 38 | +#import "DSTableViewCell.h" | ||
| 39 | +#import "DSEmptyView.h" | ||
| 40 | +#import "UIView+DSEmptyView.h" | ||
| 41 | +#import "DSImageView.h" | ||
| 42 | +#import "DSImageView+DSBaseControlsModule.h" | ||
| 43 | +#import "DSTransitionEnum.h" | ||
| 44 | +#import "NSObject+DSNavExtension.h" | ||
| 45 | +#import "UIViewController+DSNavExtension.h" | ||
| 46 | +#import "DSRoundedRectView.h" | ||
| 47 | +#import "UIView+DSRoundedRectView.h" | ||
| 48 | +#import "DSImageManager.h" | ||
| 49 | + | ||
| 17 | #endif /* DSBaseModule_h */ | 50 | #endif /* DSBaseModule_h */ |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSBaseViewController.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSBaseViewController.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/5/7. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// 公开基类 | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | +#import <Foundation/Foundation.h> | ||
| 11 | +#import "DSNavButton.h" | ||
| 12 | + | ||
| 13 | +UIKIT_EXTERN const CGFloat kTopNavLeftRightOffset; | ||
| 14 | + | ||
| 15 | +NS_ASSUME_NONNULL_BEGIN | ||
| 16 | + | ||
| 17 | +@interface DSBaseViewController : UIViewController | ||
| 18 | + | ||
| 19 | +#pragma mark - 通用属性 | ||
| 20 | + | ||
| 21 | +@property (nonatomic,copy,nullable) NSDictionary * baseMessage; | ||
| 22 | +/// 控制器唯一标识 | ||
| 23 | +@property (nonatomic,copy,nonnull,readonly) NSString * uniqueIdentity; | ||
| 24 | + | ||
| 25 | +#pragma mark - 顶部导航 | ||
| 26 | + | ||
| 27 | +@property (nonatomic,strong) UIView * topNavView;//高度为 get_system_nav_height() | ||
| 28 | +@property (nonatomic,strong) UILabel * titleLab; | ||
| 29 | +@property (nonatomic,strong,nullable) NSArray<DSNavButton*> * leftNavBtns; | ||
| 30 | +@property (nonatomic,strong,nullable) NSArray<DSNavButton*> * rightNavBtns; | ||
| 31 | +@property (nonatomic,strong) UIImageView * topLine; | ||
| 32 | +@property (nonatomic,assign) CGFloat topNavViewHeight;//topNavView的高度 默认高度为 get_system_nav_height() | ||
| 33 | +@property (nonatomic,assign) CGFloat topNavViewSubUIContentOffsetY;//顶部导航内容(不带topLine)偏移量Y 初始值为0 | ||
| 34 | + | ||
| 35 | +#pragma mark - 底部导航 | ||
| 36 | + | ||
| 37 | +@property (nonatomic,strong) UIView * bottomNavView;//高度为 0 | ||
| 38 | +@property (nonatomic,strong) UIImageView * bottomLine; | ||
| 39 | +@property (nonatomic,assign) CGFloat bottomNavViewHeight;//bottomNavView的高度 默认高度为 0 | ||
| 40 | +@property (nonatomic,assign) CGFloat bottomLineOffsetY;//底部导航分割线偏移量Y 初始值为0 | ||
| 41 | +#pragma mark - 是否禁止右滑返回 | ||
| 42 | + | ||
| 43 | +/** | ||
| 44 | + 是否禁止右滑返回 | ||
| 45 | + */ | ||
| 46 | +@property (nonatomic,assign) BOOL popGestureRecognizerEnable; | ||
| 47 | + | ||
| 48 | +/** | ||
| 49 | + 侧滑返回指定控制器 | ||
| 50 | + */ | ||
| 51 | +@property (nonatomic,weak) UIViewController * interactivePopViewController; | ||
| 52 | + | ||
| 53 | +/** | ||
| 54 | + 在导航中删除指定控制器 | ||
| 55 | + | ||
| 56 | + @param controller 控制器 | ||
| 57 | + */ | ||
| 58 | +-(void)removeControllerInNavigation:(UIViewController*)controller; | ||
| 59 | + | ||
| 60 | +/** | ||
| 61 | + 在导航中删除指定控制器数组 | ||
| 62 | + | ||
| 63 | + @param controllers 控制器数组 | ||
| 64 | + */ | ||
| 65 | +-(void)removeControllersInNavigation:(NSArray<UIViewController*>*)controllers; | ||
| 66 | + | ||
| 67 | +#pragma mark - 状态栏 | ||
| 68 | + | ||
| 69 | +@property (nonatomic,assign) UIStatusBarStyle statusBarStyle;//状态栏样式 | ||
| 70 | +@property (nonatomic,assign) BOOL statusBarHidden;//状态栏是否隐藏 | ||
| 71 | +@property (nonatomic,assign) UIStatusBarAnimation statusBarUpdateAnimation;//状态栏更新动画 | ||
| 72 | + | ||
| 73 | +/** | ||
| 74 | + 状态栏是否隐藏(带动画) | ||
| 75 | + | ||
| 76 | + @param hidden 是否隐藏 | ||
| 77 | + @param animation 动画类型 | ||
| 78 | + */ | ||
| 79 | +-(void)setStatusBarHidden:(BOOL)hidden withAnimation:(UIStatusBarAnimation)animation; | ||
| 80 | + | ||
| 81 | +#pragma mark - 分类替代方法 | ||
| 82 | + | ||
| 83 | +//以下方法对应系统的方法 | ||
| 84 | +-(void)dsViewDidLoad; | ||
| 85 | +-(void)dsViewWillAppear:(BOOL)animated; | ||
| 86 | +-(void)dsViewDidAppear:(BOOL)animated; | ||
| 87 | +-(void)dsViewWillDisappear:(BOOL)animated; | ||
| 88 | +-(void)dsViewDidDisappear:(BOOL)animated; | ||
| 89 | +-(void)dsDealloc; | ||
| 90 | +-(void)dsViewWillLayoutSubviews; | ||
| 91 | + | ||
| 92 | +@end | ||
| 93 | + | ||
| 94 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSCollectionView.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSCollectionView.h | ||
| 3 | +// | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +@interface DSCollectionView : UICollectionView | ||
| 12 | + | ||
| 13 | +#pragma mark - 手势 | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + 点击手势 | ||
| 17 | + */ | ||
| 18 | +@property (nonatomic,strong) UITapGestureRecognizer * csTapGestureRecognizer; | ||
| 19 | + | ||
| 20 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSEmptyView.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSEmptyView.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2018/11/16. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +#import <UIKit/UIKit.h> | ||
| 9 | + | ||
| 10 | +NS_ASSUME_NONNULL_BEGIN | ||
| 11 | + | ||
| 12 | +@interface DSEmptyView : UIView | ||
| 13 | + | ||
| 14 | +/// 加入间距 | ||
| 15 | +@property (nonatomic,assign) UIEdgeInsets inset; | ||
| 16 | + | ||
| 17 | +#pragma mark - 空白图片 | ||
| 18 | + | ||
| 19 | +/// 空白图片 | ||
| 20 | +@property (nonatomic,strong,nullable) UIImage * emptyImage; | ||
| 21 | +/// 空白页图片大小 默认size(100, 100) | ||
| 22 | +@property (nonatomic,assign) CGSize emptyImageViewSize; | ||
| 23 | + | ||
| 24 | +#pragma mark - 提示 | ||
| 25 | + | ||
| 26 | +/// 提示信息 | ||
| 27 | +@property (nonatomic,copy,nullable) NSString * remind; | ||
| 28 | +/// 提示信息(富文本) 与remind互斥 | ||
| 29 | +@property (nonatomic,copy,nullable) NSAttributedString * attr_remind; | ||
| 30 | +/// 提示对icon底部的间距 默认6 | ||
| 31 | +@property (nonatomic,assign) CGFloat remindLabTopMargin; | ||
| 32 | +/// 提示大小 默认size(300, 25) | ||
| 33 | +@property (nonatomic,assign) CGSize remindLabSize; | ||
| 34 | +/// 提示字颜色 默认按000000 | ||
| 35 | +@property (nonatomic,strong,nullable) UIColor * remindLabTitleColor; | ||
| 36 | +/// 提示字号 默认按14 | ||
| 37 | +@property (nonatomic,strong,nullable) UIFont * remindLabTitleFont; | ||
| 38 | + | ||
| 39 | +#pragma mark - 副提示 | ||
| 40 | + | ||
| 41 | +/// 副提示信息 | ||
| 42 | +@property (nonatomic,copy,nullable) NSString * hint; | ||
| 43 | +/// 提示信息(富文本) 与hint互斥 | ||
| 44 | +@property (nonatomic,copy,nullable) NSAttributedString * attr_hint; | ||
| 45 | +/// 副提示对提示底部的间距 距上4 | ||
| 46 | +@property (nonatomic,assign) CGFloat hintLabTopMargin; | ||
| 47 | +/// 副提示大小 默认size(300, 25) | ||
| 48 | +@property (nonatomic,assign) CGSize hintLabSize; | ||
| 49 | +/// 副提示字颜色 默认按AFAFAF | ||
| 50 | +@property (nonatomic,strong,nullable) UIColor * hintLabTitleColor; | ||
| 51 | +/// 副提示字号 默认按12 | ||
| 52 | +@property (nonatomic,strong,nullable) UIFont * hintLabTitleFont; | ||
| 53 | + | ||
| 54 | +#pragma mark - 处理按钮 | ||
| 55 | + | ||
| 56 | +/// 处理按钮标题 | ||
| 57 | +@property (nonatomic,copy,nullable) NSString * disposeBtnTitle; | ||
| 58 | +/// 提示信息(富文本) 与disposeBtnTitle互斥 | ||
| 59 | +@property (nonatomic,copy,nullable) NSAttributedString * attr_disposeBtnTitle; | ||
| 60 | +/// 处理按钮对副提示底部的间距 距上15 | ||
| 61 | +@property (nonatomic,assign) CGFloat disposeBtnTopMargin; | ||
| 62 | +/// 处理按钮大小 默认size(150, 35) | ||
| 63 | +@property (nonatomic,assign) CGSize disposeBtnSize; | ||
| 64 | +/// 处理按钮颜色 默认按[UIColor clearColor] | ||
| 65 | +@property (nonatomic,strong,nullable) UIColor * disposeBtnColor; | ||
| 66 | +/// 处理按钮边框颜色 默认按ff725c | ||
| 67 | +@property (nonatomic,strong,nullable) UIColor * disposeBtnStrokeColor; | ||
| 68 | +/// 处理按钮字颜色 默认按ff725c | ||
| 69 | +@property (nonatomic,strong,nullable) UIColor * disposeBtnTitleColor; | ||
| 70 | +/// 处理按钮字号 默认按13 | ||
| 71 | +@property (nonatomic,strong,nullable) UIFont * disposeBtnTitleFont; | ||
| 72 | +/// 处理按钮角度 默认0即高度的一半 小于0代表不切角 | ||
| 73 | +@property (nonatomic,assign) CGFloat disposeBtnRadius; | ||
| 74 | + | ||
| 75 | +#pragma mark - 回调 | ||
| 76 | + | ||
| 77 | +/** | ||
| 78 | + 点击处理按钮返回 | ||
| 79 | + */ | ||
| 80 | +@property (nonatomic,copy) void (^tapDisposeBtnCallBack)(void); | ||
| 81 | + | ||
| 82 | +@end | ||
| 83 | + | ||
| 84 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSImageManager.h
0 → 100755
| 1 | +// | ||
| 2 | +// DSImageManager.h | ||
| 3 | +// MySelfFrame | ||
| 4 | +// | ||
| 5 | +// Created by iMac on 17/2/14. | ||
| 6 | +// Copyright © 2017年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | +#import <SDWebImage/SDWebImage.h> | ||
| 11 | + | ||
| 12 | +@interface DSImageManager : NSObject | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + 查磁盘缓存/内存缓存中是否有该图片数据 | ||
| 16 | + | ||
| 17 | + @param url 该图片网络图片路径 | ||
| 18 | + @param completion 结果 | ||
| 19 | + */ | ||
| 20 | ++(void)checkCachedImageForKey:(nonnull NSString*)url completion:(nullable void (^)(SDImageCacheType containsCacheType))completion; | ||
| 21 | + | ||
| 22 | +/** | ||
| 23 | + 缓存图片 | ||
| 24 | + | ||
| 25 | + @param image 图片 | ||
| 26 | + @param imageData 图片数据 | ||
| 27 | + @param url 图片缓存路径 | ||
| 28 | + @param completion 结果 | ||
| 29 | + */ | ||
| 30 | ++(void)storeImage:(nullable UIImage*)image imageData:(nullable NSData*)imageData url:(nonnull NSString*)url completion:(nullable void (^)(void))completion; | ||
| 31 | + | ||
| 32 | +/** | ||
| 33 | + 从缓存取图片 | ||
| 34 | + | ||
| 35 | + @param url 图片缓存路径 | ||
| 36 | + @param completion 结果 | ||
| 37 | + */ | ||
| 38 | ++(void)queryImageForKey:(nonnull NSString*)url completion:(nullable void (^)(UIImage * _Nullable image, NSData * _Nullable imageData))completion; | ||
| 39 | + | ||
| 40 | +/** | ||
| 41 | + 下载图片 并用SDImageCache缓存 | ||
| 42 | + | ||
| 43 | + @param url 该图片网络图片路径 | ||
| 44 | + @param progress 图片下载进度 | ||
| 45 | + @param completed 下载完成(如果 image = nil && imageData = nil 为下载失败) | ||
| 46 | + */ | ||
| 47 | ++(void)downloadImageWithUrl:(nullable NSString*)url progress:(nullable void (^)(NSString * _Nullable percentage))progress completed:(nullable void (^)(NSString * _Nullable url, UIImage * _Nullable image, NSData * _Nullable imageData))completed; | ||
| 48 | + | ||
| 49 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSImageView+DSBaseControlsModule.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSImageView+DSBaseControlsModule.h | ||
| 3 | +// DSBaseModule | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2020/1/17. | ||
| 6 | +// Copyright © 2020 CNLive. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import "DSImageView.h" | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface DSImageView (DSBaseControlsModule) | ||
| 14 | + | ||
| 15 | +#pragma mark - 加载图片 | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + 小等缩略图 | ||
| 19 | + */ | ||
| 20 | +-(void)setSmallerThumbImageWithURL:(nullable NSString*)imageUrl; | ||
| 21 | +-(void)setSmallerThumbImageWithURL:(nullable NSString*)imageUrl complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 22 | +-(void)setSmallerThumbImageWithURL:(nullable NSString*)imageUrl placeholderImage:(nullable UIImage*)placeholderImage; | ||
| 23 | +-(void)setSmallerThumbImageWithURL:(nullable NSString*)imageUrl placeholderImage:(nullable UIImage*)placeholderImage complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 24 | + | ||
| 25 | +/** | ||
| 26 | + 中等缩略图 | ||
| 27 | + */ | ||
| 28 | +-(void)setThumbImageWithURL:(nullable NSString*)imageUrl; | ||
| 29 | +-(void)setThumbImageWithURL:(nullable NSString*)imageUrl complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 30 | +-(void)setThumbImageWithURL:(nullable NSString*)imageUrl placeholderImage:(nullable UIImage*)placeholderImage; | ||
| 31 | +-(void)setThumbImageWithURL:(nullable NSString*)imageUrl placeholderImage:(nullable UIImage*)placeholderImage complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 32 | + | ||
| 33 | +/** | ||
| 34 | + 大等缩略图 | ||
| 35 | + */ | ||
| 36 | +-(void)setLargerThumbImageWithURL:(nullable NSString*)imageUrl; | ||
| 37 | +-(void)setLargerThumbImageWithURL:(nullable NSString*)imageUrl complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 38 | +-(void)setLargerThumbImageWithURL:(nullable NSString*)imageUrl placeholderImage:(nullable UIImage*)placeholderImage; | ||
| 39 | +-(void)setLargerThumbImageWithURL:(nullable NSString*)imageUrl placeholderImage:(nullable UIImage*)placeholderImage complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 40 | + | ||
| 41 | +/** | ||
| 42 | + 原图 | ||
| 43 | + */ | ||
| 44 | +-(void)setOriginalImageWithUrl:(nullable NSString*)imageUrl; | ||
| 45 | +-(void)setOriginalImageWithUrl:(nullable NSString*)imageUrl isPreThumbImage:(BOOL)isPreThumbImage; | ||
| 46 | +-(void)setOriginalImageWithUrl:(nullable NSString*)imageUrl isPreThumbImage:(BOOL)isPreThumbImage complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 47 | +-(void)setOriginalImageWithUrl:(nullable NSString*)imageUrl isPreThumbImage:(BOOL)isPreThumbImage placeholderImage:(nullable UIImage*)placeholderImage; | ||
| 48 | +-(void)setOriginalImageWithUrl:(nullable NSString*)imageUrl isPreThumbImage:(BOOL)isPreThumbImage placeholderImage:(nullable UIImage*)placeholderImage complete:(nullable void (^)(UIImage * image, NSURL * imageURL))complete; | ||
| 49 | + | ||
| 50 | +@end | ||
| 51 | + | ||
| 52 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSImageView.h
0 → 100644
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSNavButton.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSNavButton.h | ||
| 3 | +// | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/12. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + 当图片和标题同时存在时 图片相对于标题的位置 | ||
| 13 | + | ||
| 14 | + - DSImagePositionLeft: 左边 | ||
| 15 | + - DSImagePositionTop: 上边 | ||
| 16 | + - DSImagePositionRight: 右边 | ||
| 17 | + - DSImagePositionBottom: 下边 | ||
| 18 | + */ | ||
| 19 | +typedef NS_ENUM(NSUInteger, DSImagePosition) { | ||
| 20 | + DSImagePositionLeft = 0, | ||
| 21 | + DSImagePositionTop, | ||
| 22 | + DSImagePositionRight, | ||
| 23 | + DSImagePositionBottom, | ||
| 24 | +}; | ||
| 25 | + | ||
| 26 | +@interface DSNavButton : UIControl | ||
| 27 | + | ||
| 28 | +/*************************************************************************************************** | ||
| 29 | + 默认frame = CGRectMake(自动排列间距0, get_system_statusBar_height(), get_system_nav_ui_height(), get_system_nav_ui_height()) | ||
| 30 | + ***************************************************************************************************/ | ||
| 31 | + | ||
| 32 | +#pragma mark - 图片init | ||
| 33 | + | ||
| 34 | +-(nonnull instancetype)initWithImage:(nonnull UIImage *)image; | ||
| 35 | +-(nonnull instancetype)initWithImage:(nonnull UIImage *)image imageSize:(CGSize)imageSize; | ||
| 36 | + | ||
| 37 | +#pragma mark - 标题init | ||
| 38 | + | ||
| 39 | +-(nonnull instancetype)initWithTitle:(nonnull NSString*)title; | ||
| 40 | +-(nonnull instancetype)initWithTitle:(nonnull NSString*)title font:(nonnull UIFont*)font; | ||
| 41 | +-(nonnull instancetype)initWithTitle:(nonnull NSString*)title titleColor:(nonnull UIColor*)titleColor; | ||
| 42 | +-(nonnull instancetype)initWithTitle:(nonnull NSString*)title font:(nonnull UIFont*)font titleColor:(nonnull UIColor*)titleColor; | ||
| 43 | + | ||
| 44 | +#pragma mark - 图片&标题init | ||
| 45 | + | ||
| 46 | +-(nonnull instancetype)initWithImage:(nonnull UIImage *)image title:(nonnull NSString*)title; | ||
| 47 | +-(nonnull instancetype)initWithImage:(nonnull UIImage *)image title:(nonnull NSString*)title imagePosition:(DSImagePosition)imagePosition; | ||
| 48 | +-(nonnull instancetype)initWithImage:(nonnull UIImage *)image imageSize:(CGSize)imageSize title:(nonnull NSString*)title; | ||
| 49 | +-(nonnull instancetype)initWithImage:(nonnull UIImage *)image imageSize:(CGSize)imageSize title:(nonnull NSString*)title imagePosition:(DSImagePosition)imagePosition; | ||
| 50 | +-(nonnull instancetype)initWithImage:(nonnull UIImage *)image imageSize:(CGSize)imageSize title:(nonnull NSString*)title font:(nonnull UIFont*)font titleColor:(nonnull UIColor*)titleColor imagePosition:(DSImagePosition)imagePosition; | ||
| 51 | + | ||
| 52 | +#pragma mark - 标题属性 | ||
| 53 | + | ||
| 54 | +/// 标题 | ||
| 55 | +@property (nonatomic,copy,nonnull) NSString * title; | ||
| 56 | +/// 标题大小 | ||
| 57 | +@property (nonatomic,strong,nonnull) UIFont * font; | ||
| 58 | +/// 标题颜色 | ||
| 59 | +@property (nonatomic,strong,nonnull) UIColor * titleColor; | ||
| 60 | + | ||
| 61 | +#pragma mark - 图片属性 | ||
| 62 | + | ||
| 63 | +/// 图片 | ||
| 64 | +@property (nonatomic,strong,nonnull) UIImage * image; | ||
| 65 | +/// 图片大小 | ||
| 66 | +@property (nonatomic,assign) CGSize imageSize; | ||
| 67 | +/// 图片颜色 | ||
| 68 | +@property (nonatomic,strong,nullable) UIColor * imageColor; | ||
| 69 | +/// 图片位置 | ||
| 70 | +@property (nonatomic,assign) DSImagePosition imagePosition; | ||
| 71 | + | ||
| 72 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSPercentDrivenInteractiveTransition.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSPercentDrivenInteractiveTransition.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/12/23. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface DSPercentDrivenInteractiveTransition : UIPercentDrivenInteractiveTransition | ||
| 14 | + | ||
| 15 | +//#pragma mark - 属性 | ||
| 16 | +// | ||
| 17 | +///// 返回手势是否可用 默认可用 | ||
| 18 | +//@property (nonatomic,assign) BOOL panGestureEnble; | ||
| 19 | +///// 是否是手势返回 | ||
| 20 | +//@property (nonatomic,assign) BOOL interation; | ||
| 21 | +///// 返回的VC | ||
| 22 | +//@property (nonatomic,weak) UIViewController * backVC; | ||
| 23 | +// | ||
| 24 | +//#pragma mark - 添加返回手势 | ||
| 25 | +// | ||
| 26 | +///// 当前添加手势的控制器 | ||
| 27 | +//@property (nonatomic,weak,readonly) UIViewController * pgViewController; | ||
| 28 | +// | ||
| 29 | +///// 给传入的控制器添加手势 | ||
| 30 | +///// @param viewController 控制器 | ||
| 31 | +//-(void)addPanGestureForViewController:(UIViewController *)viewController; | ||
| 32 | + | ||
| 33 | +@end | ||
| 34 | + | ||
| 35 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSRoundedRectView.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSRoundedRectView.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +@interface DSRoundedRectView : UIView | ||
| 12 | + | ||
| 13 | +/** | ||
| 14 | + 填充色 | ||
| 15 | + */ | ||
| 16 | +@property (nonatomic,strong) UIColor * fillColor; | ||
| 17 | + | ||
| 18 | +/** | ||
| 19 | + 边框色 | ||
| 20 | + */ | ||
| 21 | +@property (nonatomic,strong) UIColor * strokeColor; | ||
| 22 | + | ||
| 23 | +/** | ||
| 24 | + 边框宽度 | ||
| 25 | + */ | ||
| 26 | +@property (nonatomic,assign) CGFloat strokeWidth; | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + 圆角度数 默认0 | ||
| 30 | + */ | ||
| 31 | +@property (nonatomic,assign) CGFloat radius; | ||
| 32 | + | ||
| 33 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSScrollView.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSScrollView.h | ||
| 3 | +// | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +@interface DSScrollView : UIScrollView | ||
| 12 | + | ||
| 13 | +#pragma mark - 手势 | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + 点击手势 | ||
| 17 | + */ | ||
| 18 | +@property (nonatomic,strong) UITapGestureRecognizer * csTapGestureRecognizer; | ||
| 19 | + | ||
| 20 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTabBar.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSTabBar.h | ||
| 3 | +// com.cnlive.pro.CNLiveNetAdd | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/9/16. | ||
| 6 | +// Copyright © 2019 cnlive. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface DSTabBar : UIView | ||
| 14 | + | ||
| 15 | +@end | ||
| 16 | + | ||
| 17 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTabBarButton.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSTabBarButton.h | ||
| 3 | +// com.cnlive.pro.CNLiveNetAdd | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/9/16. | ||
| 6 | +// Copyright © 2019 cnlive. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface DSTabBarButton : UIButton | ||
| 14 | + | ||
| 15 | +@end | ||
| 16 | + | ||
| 17 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTabBarViewController.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSTabBarViewController.h | ||
| 3 | +// com.cnlive.pro.CNLiveNetAdd | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/9/16. | ||
| 6 | +// Copyright © 2019 cnlive. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import "DSBaseViewController.h" | ||
| 10 | +#import "DSTabBar.h" | ||
| 11 | +@class DSTabBarViewController; | ||
| 12 | + | ||
| 13 | +@protocol DSTabBarViewControllerDelegate <NSObject> | ||
| 14 | + | ||
| 15 | +@optional | ||
| 16 | + | ||
| 17 | +/// 切换index代理 实现了这个代理后 切换index必须用调用tabBar.displayIndex=switchIndex才能切换显示界面 | ||
| 18 | +/// @param tabBar DSTabBarViewController | ||
| 19 | +/// @param switchIndex 切换后index | ||
| 20 | +/// @param fromIndex 切换前index | ||
| 21 | +-(void)tabBar:(nonnull DSTabBarViewController*)tabBar switchIndex:(NSUInteger)switchIndex fromIndex:(NSUInteger)fromIndex; | ||
| 22 | + | ||
| 23 | +@end | ||
| 24 | + | ||
| 25 | +NS_ASSUME_NONNULL_BEGIN | ||
| 26 | + | ||
| 27 | +@interface DSTabBarViewController : DSBaseViewController | ||
| 28 | + | ||
| 29 | +#pragma mark - 代理 | ||
| 30 | + | ||
| 31 | +@property (nonatomic,weak) id<DSTabBarViewControllerDelegate> delegate; | ||
| 32 | + | ||
| 33 | +#pragma mark - 属性 | ||
| 34 | + | ||
| 35 | +/// 默认颜色 | ||
| 36 | +@property (nonatomic,strong) UIColor * normalColor; | ||
| 37 | +/// 选中颜色 | ||
| 38 | +@property (nonatomic,strong) UIColor * selectColor; | ||
| 39 | +/// 所有的子控制器 | ||
| 40 | +@property (nonatomic,strong,readonly) NSMutableArray<UIViewController*> * viewControllers; | ||
| 41 | +/// 当前显示的索引 | ||
| 42 | +@property (nonatomic,assign) NSUInteger displayIndex; | ||
| 43 | +/// 当前显示的子控制器 | ||
| 44 | +@property (nonatomic,weak,readonly) UIViewController * displayViewController; | ||
| 45 | + | ||
| 46 | +#pragma mark - UI | ||
| 47 | + | ||
| 48 | +/** | ||
| 49 | + DSTabBar | ||
| 50 | + */ | ||
| 51 | +@property (nonatomic,strong) DSTabBar * tabBar; | ||
| 52 | + | ||
| 53 | +#pragma mark - 消息数 | ||
| 54 | + | ||
| 55 | +/// 消息默认大小 默认15,15 | ||
| 56 | +@property (nonatomic,assign) CGSize messageSize; | ||
| 57 | +/// 消息字号 默认10 | ||
| 58 | +@property (nonatomic,strong) UIFont * messageFont; | ||
| 59 | +/// 消息背景颜色 默认[UIColor redColor] | ||
| 60 | +@property (nonatomic,strong) UIColor * messageBgColor; | ||
| 61 | +/// 消息字体颜色 默认[UIColor whiteColor] | ||
| 62 | +@property (nonatomic,strong) UIColor * messageTitleColor; | ||
| 63 | +/// 消息字左右与背景间距 默认4 | ||
| 64 | +@property (nonatomic,assign) CGFloat messageTitleLRInset; | ||
| 65 | +/// 消息x/y偏移量 默认-4,4 | ||
| 66 | +@property (nonatomic,assign) CGPoint messagePositionOffset; | ||
| 67 | + | ||
| 68 | +/// 设置消息数 | ||
| 69 | +/// @param messageCount 消息数 | ||
| 70 | +/// @param index 对应索引 | ||
| 71 | +-(void)settingMessageCount:(NSUInteger)messageCount index:(NSUInteger)index; | ||
| 72 | + | ||
| 73 | +#pragma mark - 添加/删除/修改子控制器 | ||
| 74 | + | ||
| 75 | +/** | ||
| 76 | + 添加子控制器 | ||
| 77 | + | ||
| 78 | + @param childController 子控制器 标题就是导航标题 | ||
| 79 | + @param normalImage 普通样式图片 | ||
| 80 | + @param selectImage 选中样式图片 | ||
| 81 | + @return 添加结果 YES成功 NO失败 | ||
| 82 | + */ | ||
| 83 | +-(BOOL)addChildViewController:(nonnull UIViewController *)childController noralImage:(nullable UIImage*)normalImage selectImage:(nullable UIImage*)selectImage; | ||
| 84 | + | ||
| 85 | +/// 插入子控制器 | ||
| 86 | +/// @param childController 子控制器 标题就是导航标题 | ||
| 87 | +/// @param normalImage 普通样式图片 | ||
| 88 | +/// @param selectImage 选中样式图片 | ||
| 89 | +/// @param index 插入index | ||
| 90 | +/// @return 添加结果 YES成功 NO失败 | ||
| 91 | +-(BOOL)insertChildViewController:(nonnull UIViewController *)childController noralImage:(nullable UIImage*)normalImage selectImage:(nullable UIImage*)selectImage index:(NSUInteger)index; | ||
| 92 | + | ||
| 93 | +/** | ||
| 94 | + 删除子控制器 | ||
| 95 | + | ||
| 96 | + @param childController 子控制器 | ||
| 97 | + @return 删除结果 YES成功 NO失败 | ||
| 98 | + */ | ||
| 99 | +-(BOOL)removeChildViewController:(nonnull UIViewController *)childController; | ||
| 100 | + | ||
| 101 | +/** | ||
| 102 | + 删除子控制器(用索引) | ||
| 103 | + | ||
| 104 | + @param index 子控制器索引 | ||
| 105 | + @return 删除结果 YES成功 NO失败 | ||
| 106 | + */ | ||
| 107 | +-(BOOL)removeChildViewControllerAtIndex:(NSUInteger)index; | ||
| 108 | + | ||
| 109 | +/// 修改子控制器 | ||
| 110 | +/// @param childController 子控制器 标题就是导航标题 | ||
| 111 | +/// @param normalImage 普通样式图片 | ||
| 112 | +/// @param selectImage 选中样式图片 | ||
| 113 | +/// @param index 修改index | ||
| 114 | +/// @return 修改结果 YES成功 NO失败 | ||
| 115 | +-(BOOL)changeChildViewController:(nonnull UIViewController *)childController noralImage:(nullable UIImage*)normalImage selectImage:(nullable UIImage*)selectImage index:(NSUInteger)index; | ||
| 116 | + | ||
| 117 | +@end | ||
| 118 | + | ||
| 119 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTableView.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSTableView.h | ||
| 3 | +// | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +@interface DSTableView : UITableView | ||
| 12 | + | ||
| 13 | +#pragma mark - 手势 | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + 点击手势 | ||
| 17 | + */ | ||
| 18 | +@property (nonatomic,strong) UITapGestureRecognizer * csTapGestureRecognizer; | ||
| 19 | + | ||
| 20 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTableViewCell.h
0 → 100644
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTransitionAnimater.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSTransitionAnimater.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/12/23. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | +#import <UIKit/UIKit.h> | ||
| 11 | +#import "DSTransitionEnum.h" | ||
| 12 | + | ||
| 13 | +NS_ASSUME_NONNULL_BEGIN | ||
| 14 | + | ||
| 15 | +@interface DSTransitionAnimater : NSObject// <UIViewControllerAnimatedTransitioning> | ||
| 16 | + | ||
| 17 | +//#pragma mark - 属性 | ||
| 18 | +// | ||
| 19 | +///// 是否是手势返回 | ||
| 20 | +//@property (nonatomic,assign) BOOL interation; | ||
| 21 | +// | ||
| 22 | +//#pragma mark - 创建方法 | ||
| 23 | +// | ||
| 24 | +///// 创建方法 | ||
| 25 | +///// @param type 过场动画的方式 | ||
| 26 | +///// @param direction 过场动画的方向 | ||
| 27 | +//-(instancetype)initWithTransitionType:(DSTransitionAnimaterType)type transitionAnimaterDirection:(DSTransitionAnimaterDirection)direction; | ||
| 28 | +// | ||
| 29 | +//#pragma mark - 回调 | ||
| 30 | +// | ||
| 31 | +///// 返回成功回调 | ||
| 32 | +//@property (nonatomic,copy) void (^finishBackCallBack)(void); | ||
| 33 | + | ||
| 34 | +@end | ||
| 35 | + | ||
| 36 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTransitionEnum.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSTransitionEnum.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/12/24. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#ifndef DSTransitionEnum_h | ||
| 10 | +#define DSTransitionEnum_h | ||
| 11 | + | ||
| 12 | +typedef NS_ENUM(NSUInteger, DSTransitionAnimaterDirection) {//过场动画的方向 | ||
| 13 | + DSTransitionAnimaterDirectionRight = 0, | ||
| 14 | + DSTransitionAnimaterDirectionLeft, | ||
| 15 | + DSTransitionAnimaterDirectionBottom, | ||
| 16 | + DSTransitionAnimaterDirectionTop | ||
| 17 | +}; | ||
| 18 | + | ||
| 19 | +//typedef NS_ENUM(NSUInteger, DSTransitionAnimaterType) {//过场动画类型 | ||
| 20 | +// DSTransitionAnimaterTypePush = 0, | ||
| 21 | +// DSTransitionAnimaterTypePop | ||
| 22 | +//}; | ||
| 23 | + | ||
| 24 | +#endif /* DSTransitionEnum_h */ |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSViewControllerNaviDelegate.h
0 → 100644
| 1 | +// | ||
| 2 | +// DSViewControllerNaviDelegate.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/12/23. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | +#import <UIKit/UIKit.h> | ||
| 11 | +#import "DSTransitionAnimater.h" | ||
| 12 | +#import "DSPercentDrivenInteractiveTransition.h" | ||
| 13 | +#import "DSTransitionEnum.h" | ||
| 14 | + | ||
| 15 | +NS_ASSUME_NONNULL_BEGIN | ||
| 16 | + | ||
| 17 | +@interface DSViewControllerNaviDelegate : NSObject <UINavigationControllerDelegate> | ||
| 18 | + | ||
| 19 | +//#pragma mark - 属性 | ||
| 20 | +// | ||
| 21 | +///// 交互对象 | ||
| 22 | +//@property (nonatomic,strong) DSPercentDrivenInteractiveTransition * transition; | ||
| 23 | +///// 动画方向 默认DSTransitionAnimaterDirectionRight | ||
| 24 | +//@property (nonatomic,assign) DSTransitionAnimaterDirection animaterDirection; | ||
| 25 | + | ||
| 26 | +@end | ||
| 27 | + | ||
| 28 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/MKMapView+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// MKMapView+DSEMExtension.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/2/18. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +#import <MapKit/MapKit.h> | ||
| 9 | + | ||
| 10 | +NS_ASSUME_NONNULL_BEGIN | ||
| 11 | + | ||
| 12 | +@interface MKMapView (DSEMExtension) | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + 设置中心 | ||
| 16 | + | ||
| 17 | + @param centerCoordinate 中心 | ||
| 18 | + @param zoomLevel 缩放级别 | ||
| 19 | + @param animated 是否动画 | ||
| 20 | + */ | ||
| 21 | +-(void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate zoomLevel:(NSUInteger)zoomLevel animated:(BOOL)animated; | ||
| 22 | + | ||
| 23 | +@end | ||
| 24 | + | ||
| 25 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/NSAttributedString+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// NSAttributedString+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/10/8. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface NSAttributedString (DSEMExtension) | ||
| 14 | + | ||
| 15 | +#pragma mark - 计算文本大小 | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + 计算文本高度(固定宽) | ||
| 19 | + | ||
| 20 | + @param width 固定宽度 | ||
| 21 | + @return 文本大小 | ||
| 22 | + */ | ||
| 23 | +-(CGFloat)calculateHeightWithUIWidth:(CGFloat)width; | ||
| 24 | + | ||
| 25 | +/** | ||
| 26 | + 计算文本宽度(固定高) | ||
| 27 | + | ||
| 28 | + @param height 固定高度 | ||
| 29 | + @return 文本大小 | ||
| 30 | + */ | ||
| 31 | +-(CGFloat)calculateWidthWithUIHeight:(CGFloat)height; | ||
| 32 | + | ||
| 33 | +@end | ||
| 34 | + | ||
| 35 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/NSDate+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// NSDate+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/5. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | + | ||
| 11 | +typedef NS_ENUM(NSUInteger, DSDateFormat) { | ||
| 12 | + DSDateFormatYYYY_MM_dd_HH_mm_ss = 0, //YYYY-MM-dd HH:mm:ss | ||
| 13 | + DSDateFormatYYYY_MM_dd_HH_mm, //YYYY-MM-dd HH:mm | ||
| 14 | + DSDateFormatYYYY_MM_dd_HH, //YYYY-MM-dd HH | ||
| 15 | + DSDateFormatYYYY_MM_dd, //YYYY-MM-dd | ||
| 16 | + DSDateFormatYYYY_MM_HH_mm_ss, //YYYY-MM HH:mm:ss | ||
| 17 | + DSDateFormatYYYY_MM_HH_mm, //YYYY-MM HH:mm | ||
| 18 | + DSDateFormatYYYY_MM_HH, //YYYY-MM HH | ||
| 19 | + DSDateFormatYYYY_MM, //YYYY-MM | ||
| 20 | + DSDateFormatYYYY, //YYYY | ||
| 21 | + DSDateFormatMM_dd_HH_mm_ss, //MM-dd HH:mm:ss | ||
| 22 | + DSDateFormatMM_dd_HH_mm, //MM-dd HH:mm | ||
| 23 | + DSDateFormatMM_dd_HH, //MM-dd HH | ||
| 24 | + DSDateFormatMM_dd, //MM-dd | ||
| 25 | + DSDateFormatMM, //MM | ||
| 26 | + DSDateFormatdd_HH_mm_ss, //dd HH:mm:ss | ||
| 27 | + DSDateFormatdd_HH_mm, //dd HH:mm | ||
| 28 | + DSDateFormatdd_HH, //dd HH | ||
| 29 | + DSDateFormatdd, //dd | ||
| 30 | + DSDateFormatHH_mm_ss, //HH:mm:ss | ||
| 31 | + DSDateFormatHH_mm, //HH:mm | ||
| 32 | + DSDateFormatHH, //HH | ||
| 33 | + DSDateFormatmm_ss, //mm:ss | ||
| 34 | + DSDateFormatmm, //mm | ||
| 35 | + DSDateFormatss, //ss | ||
| 36 | +}; | ||
| 37 | + | ||
| 38 | +@interface NSDate (DSEMExtension) | ||
| 39 | + | ||
| 40 | +#pragma mark - 时间转换 Format形式 | ||
| 41 | + | ||
| 42 | +/** | ||
| 43 | + 时间转换 | ||
| 44 | + | ||
| 45 | + @param format 转换形式 | ||
| 46 | + @return 转换结果 | ||
| 47 | + */ | ||
| 48 | +-(NSString*)transformStringWithFormat:(DSDateFormat)format; | ||
| 49 | + | ||
| 50 | +/** | ||
| 51 | + 时间转换 | ||
| 52 | + | ||
| 53 | + @param format 自定义转换形式 | ||
| 54 | + @return 转换结果 | ||
| 55 | + */ | ||
| 56 | +-(NSString*)transformStringWithCustomFormat:(NSString*)format; | ||
| 57 | + | ||
| 58 | +#pragma mark - 获取下一天 | ||
| 59 | + | ||
| 60 | +/** | ||
| 61 | + 获取下一天 | ||
| 62 | + | ||
| 63 | + @return 下一天 | ||
| 64 | + */ | ||
| 65 | +-(NSDate*)getNextDayDate; | ||
| 66 | + | ||
| 67 | +#pragma mark - 时间相差 | ||
| 68 | + | ||
| 69 | +/** | ||
| 70 | + * 是否为同一天 | ||
| 71 | + */ | ||
| 72 | +- (BOOL)isSameDay:(NSDate*)date; | ||
| 73 | + | ||
| 74 | +/** | ||
| 75 | + * 是否相差一天 | ||
| 76 | + */ | ||
| 77 | +- (BOOL)isSpacingOneDay:(NSDate*)date; | ||
| 78 | + | ||
| 79 | +/** | ||
| 80 | + * 是否相差两天 | ||
| 81 | + */ | ||
| 82 | +- (BOOL)isSpacingTwoDay:(NSDate*)date; | ||
| 83 | + | ||
| 84 | +/** | ||
| 85 | + 相差几天 | ||
| 86 | + | ||
| 87 | + @param date 相比时间 | ||
| 88 | + @return 时间相差几天 | ||
| 89 | + */ | ||
| 90 | +-(NSInteger)compareToDateForSpaceDay:(NSDate*)date; | ||
| 91 | + | ||
| 92 | +#pragma mark - 日历 | ||
| 93 | + | ||
| 94 | +/** | ||
| 95 | + 获取当前日期为星期几 | ||
| 96 | + | ||
| 97 | + @return 0是星期天 1是星期一 2是星期二 3是星期三 4是星期四 5是星期五 6是星期六 | ||
| 98 | + */ | ||
| 99 | +-(NSUInteger)getWeekNumber; | ||
| 100 | + | ||
| 101 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/NSObject+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// NSObject+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/5. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | +#import <UIKit/UIKit.h> | ||
| 11 | + | ||
| 12 | +@interface NSObject (DSEMExtension) | ||
| 13 | + | ||
| 14 | +#pragma mark - Tag | ||
| 15 | + | ||
| 16 | +/** | ||
| 17 | + 字典Tag | ||
| 18 | + */ | ||
| 19 | +@property (nonatomic,copy) NSDictionary * dicTag; | ||
| 20 | + | ||
| 21 | +/** | ||
| 22 | + 字符串Tag | ||
| 23 | + */ | ||
| 24 | +@property (nonatomic,copy) NSString * strTag; | ||
| 25 | + | ||
| 26 | +#pragma mark - 属性操作 | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + 打印该对象所有的属性 | ||
| 30 | + */ | ||
| 31 | +-(void)printTotalProperty; | ||
| 32 | + | ||
| 33 | +/** | ||
| 34 | + 判断对象中是否有该属性 | ||
| 35 | + | ||
| 36 | + @param property 属性名称 | ||
| 37 | + @return 判断结果 | ||
| 38 | + */ | ||
| 39 | +-(BOOL)haveProperty:(NSString *)property; | ||
| 40 | + | ||
| 41 | +/** | ||
| 42 | + 改变对象属性的值 | ||
| 43 | + | ||
| 44 | + @param value 值 | ||
| 45 | + @param property 对象属性 | ||
| 46 | + */ | ||
| 47 | +-(void)changeValue:(id)value forProperty:(NSString*)property; | ||
| 48 | + | ||
| 49 | +/** | ||
| 50 | + 取出对象属性的值 | ||
| 51 | + | ||
| 52 | + @param property 对象属性 | ||
| 53 | + @return 值 | ||
| 54 | + */ | ||
| 55 | +-(id)getValueForProperty:(NSString*)property; | ||
| 56 | + | ||
| 57 | +#pragma mark - 获取当前显示的ViewController | ||
| 58 | + | ||
| 59 | +/// 获取当前显示的ViewController | ||
| 60 | +@property (nonatomic,weak,readonly) UIViewController * displayViewController; | ||
| 61 | + | ||
| 62 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/NSObject+DSNavExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// NSObject+DSNavExtension.h | ||
| 3 | +// DSBaseModule | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2020/1/17. | ||
| 6 | +// Copyright © 2020 CNLive. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | +#import <UIKit/UIKit.h> | ||
| 11 | +#import "DSTransitionEnum.h" | ||
| 12 | + | ||
| 13 | +NS_ASSUME_NONNULL_BEGIN | ||
| 14 | + | ||
| 15 | +@interface NSObject (DSNavExtension) | ||
| 16 | + | ||
| 17 | +#pragma mark - 获取当前导航 | ||
| 18 | + | ||
| 19 | +@property (nonatomic,weak,readonly) UINavigationController * CNavigationController; | ||
| 20 | + | ||
| 21 | +#pragma mark - 导航跳转 | ||
| 22 | + | ||
| 23 | +/** | ||
| 24 | + push跳转(带viewController.hidesBottomBarWhenPushed = YES;) | ||
| 25 | + | ||
| 26 | + @param viewController viewController | ||
| 27 | + @param animated animated | ||
| 28 | + */ | ||
| 29 | +-(void)dsPushViewController:(UIViewController *)viewController animated:(BOOL)animated; | ||
| 30 | + | ||
| 31 | +/// push跳转(带viewController.hidesBottomBarWhenPushed = YES; 带方向) | ||
| 32 | +/// @param viewController viewController | ||
| 33 | +/// @param animated animated | ||
| 34 | +/// @param animaterDirection 过场动画的方向 | ||
| 35 | +-(void)dsPushViewController:(UIViewController *)viewController animated:(BOOL)animated animaterDirection:(DSTransitionAnimaterDirection)animaterDirection; | ||
| 36 | + | ||
| 37 | +/** | ||
| 38 | + pop返回 | ||
| 39 | + | ||
| 40 | + @param animated animated | ||
| 41 | + */ | ||
| 42 | +-(void)dsPopViewControllerAnimated:(BOOL)animated; | ||
| 43 | + | ||
| 44 | +@end | ||
| 45 | + | ||
| 46 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/NSString+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// NSString+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | +#import <UIKit/UIKit.h> | ||
| 11 | + | ||
| 12 | +typedef NS_ENUM(NSUInteger, DSStringAESStyle) {//AES加密方式 | ||
| 13 | + DSStringAESStyleCBC = 0, | ||
| 14 | + DSStringAESStyleECB, | ||
| 15 | +}; | ||
| 16 | + | ||
| 17 | +@interface NSString (DSEMExtension) | ||
| 18 | + | ||
| 19 | +//#pragma mark - 获取设备号 | ||
| 20 | +// | ||
| 21 | +///** | ||
| 22 | +// 获取设备号UUID | ||
| 23 | +// | ||
| 24 | +// @return UUID | ||
| 25 | +// */ | ||
| 26 | +//+(NSString*)getDeviceUUID; | ||
| 27 | + | ||
| 28 | +#pragma mark - 转化拼音 | ||
| 29 | + | ||
| 30 | +/** | ||
| 31 | + 转化为拼音 | ||
| 32 | + | ||
| 33 | + @return 拼音 | ||
| 34 | + */ | ||
| 35 | +-(NSString*)transformToPinyin; | ||
| 36 | + | ||
| 37 | +/** | ||
| 38 | + 转化为拼音,并且取首字母 | ||
| 39 | + | ||
| 40 | + @return 拼音首字母 | ||
| 41 | + */ | ||
| 42 | +-(NSString*)takeFirstLetterOfPinyin; | ||
| 43 | + | ||
| 44 | +#pragma mark - 七牛云网络图片压缩 | ||
| 45 | + | ||
| 46 | +/** | ||
| 47 | + 压缩宽为200 | ||
| 48 | + | ||
| 49 | + @return 压缩图片路径 | ||
| 50 | + */ | ||
| 51 | +-(NSString*)smallThumbImageUrl; | ||
| 52 | +/** | ||
| 53 | + 压缩宽为400 | ||
| 54 | + | ||
| 55 | + @return 压缩图片路径 | ||
| 56 | + */ | ||
| 57 | +-(NSString*)middleThumbImageUrl; | ||
| 58 | +/** | ||
| 59 | + 压缩宽为750 | ||
| 60 | + | ||
| 61 | + @return 压缩图片路径 | ||
| 62 | + */ | ||
| 63 | +-(NSString*)largeThumbImageUrl; | ||
| 64 | + | ||
| 65 | +#pragma mark - 计算文本大小 | ||
| 66 | + | ||
| 67 | +/** | ||
| 68 | + 计算文本大小(固定宽) | ||
| 69 | + | ||
| 70 | + @param width 固定宽度 | ||
| 71 | + @param font 字体大小 | ||
| 72 | + @return 文本大小 | ||
| 73 | + */ | ||
| 74 | +-(CGSize)calculateSizeWithUIWidth:(CGFloat)width font:(UIFont*)font; | ||
| 75 | + | ||
| 76 | +/** | ||
| 77 | + 计算文本大小(固定高) | ||
| 78 | + | ||
| 79 | + @param height 固定宽度 | ||
| 80 | + @param font 字体大小 | ||
| 81 | + @return 文本大小 | ||
| 82 | + */ | ||
| 83 | +-(CGSize)calculateSizeWithUIHeight:(CGFloat)height font:(UIFont*)font; | ||
| 84 | + | ||
| 85 | +#pragma mark - 删除小数点后的0 | ||
| 86 | + | ||
| 87 | +/** | ||
| 88 | + 删除小数点后的0 | ||
| 89 | + | ||
| 90 | + @return 删除后的结果 | ||
| 91 | + */ | ||
| 92 | +-(NSString*)deleteZeroAfterDecimalPoint; | ||
| 93 | + | ||
| 94 | +#pragma mark - 保留2位小数 | ||
| 95 | + | ||
| 96 | +/** | ||
| 97 | + 保留2位小数 | ||
| 98 | + | ||
| 99 | + @return 修改后的结果 | ||
| 100 | + */ | ||
| 101 | +-(NSString*)keepTwoDecimalPlaces; | ||
| 102 | + | ||
| 103 | +#pragma mark - 删除整数前的0 | ||
| 104 | + | ||
| 105 | +/** | ||
| 106 | + 删除整数前的0 | ||
| 107 | + | ||
| 108 | + @return 删除后的结果 | ||
| 109 | + */ | ||
| 110 | +-(NSString*)deleteLeadingZero; | ||
| 111 | + | ||
| 112 | +#pragma mark - 查看允不允许输入 | ||
| 113 | + | ||
| 114 | +/** | ||
| 115 | + 查看允不允许输入 例如 允许输入1、2时传入12 | ||
| 116 | + | ||
| 117 | + @param string 允许输入字符串 | ||
| 118 | + @return 允不允许 | ||
| 119 | + */ | ||
| 120 | +-(BOOL)allowWriteString:(NSString*)string; | ||
| 121 | + | ||
| 122 | +#pragma mark - 编码 | ||
| 123 | + | ||
| 124 | +/** | ||
| 125 | + * 转换为Base64编码 | ||
| 126 | + */ | ||
| 127 | +- (NSString *)base64EncodedString; | ||
| 128 | + | ||
| 129 | +/** | ||
| 130 | + * 将Base64编码还原 | ||
| 131 | + */ | ||
| 132 | +- (NSString *)base64DecodedString; | ||
| 133 | + | ||
| 134 | +/** | ||
| 135 | + aes加密 | ||
| 136 | + | ||
| 137 | + @param key 密钥 | ||
| 138 | + @param style 加密方式 | ||
| 139 | + @return 加密结果 | ||
| 140 | + */ | ||
| 141 | +-(NSString *)aesEncodeStringWithKey:(NSString*)key style:(DSStringAESStyle)style; | ||
| 142 | + | ||
| 143 | +/** | ||
| 144 | + aes解密 | ||
| 145 | + @param key 密钥 | ||
| 146 | + @param style 加密方式 | ||
| 147 | + @return 解密结果 | ||
| 148 | + */ | ||
| 149 | +-(NSString *)aesDecodedStringWithKey:(NSString*)key style:(DSStringAESStyle)style; | ||
| 150 | + | ||
| 151 | +/** | ||
| 152 | + * md5 | ||
| 153 | + * @return md5加密结果 | ||
| 154 | + */ | ||
| 155 | +- (NSString *)md5EncodeString; | ||
| 156 | + | ||
| 157 | +/** | ||
| 158 | + * sha1 | ||
| 159 | + * @return sha1加密结果 | ||
| 160 | + */ | ||
| 161 | +- (NSString *)sha1EncodeString; | ||
| 162 | + | ||
| 163 | +#pragma mark - 获取设备型号 | ||
| 164 | + | ||
| 165 | +/** | ||
| 166 | + 获取设备型号然后手动转化为对应名称 | ||
| 167 | + */ | ||
| 168 | ++(NSString *)getDeviceName; | ||
| 169 | + | ||
| 170 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/NSUserDefaults+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// NSUserDefaults+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/6. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <Foundation/Foundation.h> | ||
| 10 | + | ||
| 11 | +@interface NSUserDefaults (DSEMExtension) | ||
| 12 | + | ||
| 13 | +/** | ||
| 14 | + * 用 NSUserDefaults 存储 | ||
| 15 | + * | ||
| 16 | + * @param object 存储的对象 | ||
| 17 | + * @param key 存储对象的key | ||
| 18 | + */ | ||
| 19 | ++(void)saveDataUseMethodUserDefaults:(nullable id)object key:(nullable NSString*)key; | ||
| 20 | + | ||
| 21 | +/** | ||
| 22 | + * 用 NSUserDefaults 取数据 | ||
| 23 | + * | ||
| 24 | + * @param key 存储对象的key | ||
| 25 | + * | ||
| 26 | + * @return 取出的对象 | ||
| 27 | + */ | ||
| 28 | ++(nullable id)takeDataUseMethodUserDefaults:(nullable NSString*)key; | ||
| 29 | + | ||
| 30 | +/** | ||
| 31 | + * 获取 NSUserDefaults 存储的所有数据 | ||
| 32 | + * | ||
| 33 | + * @return NSUserDefaults 存储的所有数据 | ||
| 34 | + */ | ||
| 35 | ++(nullable NSDictionary*)takeAllUserDefaults; | ||
| 36 | + | ||
| 37 | +/** | ||
| 38 | + * 删除 NSUserDefaults 中所有的key | ||
| 39 | + */ | ||
| 40 | ++(void)resetAllUserDefaults; | ||
| 41 | + | ||
| 42 | +/** | ||
| 43 | + * 删除 NSUserDefaults 中对应的key | ||
| 44 | + * | ||
| 45 | + * @param resetKey 删除的key | ||
| 46 | + */ | ||
| 47 | ++(void)deleteUserDefaultsKey:(nullable NSString*)resetKey; | ||
| 48 | + | ||
| 49 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIColor+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIColor+DSEMExtension.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/4/11. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +#import <UIKit/UIKit.h> | ||
| 9 | + | ||
| 10 | +NS_ASSUME_NONNULL_BEGIN | ||
| 11 | + | ||
| 12 | +@interface UIColor (DSEMExtension) | ||
| 13 | + | ||
| 14 | +#pragma mark - 16进制颜色获取 0x000000 或 #000000 | ||
| 15 | + | ||
| 16 | +/** | ||
| 17 | + 16进制颜色获取 | ||
| 18 | + | ||
| 19 | + @param color 16进制颜色字符串 | ||
| 20 | + @return 16进制颜色 | ||
| 21 | + */ | ||
| 22 | ++(UIColor *)colorwithHexString:(NSString *)color; | ||
| 23 | + | ||
| 24 | +@end | ||
| 25 | + | ||
| 26 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIImage+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIImage+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +@interface UIImage (DSEMExtension) | ||
| 12 | + | ||
| 13 | +#pragma mark - 图片调整方向 | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + 调整图片为正常方向(iPhone照出的照片是倒着的) | ||
| 17 | + | ||
| 18 | + @return 调整后的图片 | ||
| 19 | + */ | ||
| 20 | +-(UIImage*)editImageOrientation; | ||
| 21 | + | ||
| 22 | +#pragma mark - 图片压缩 | ||
| 23 | + | ||
| 24 | +/** | ||
| 25 | + 图片压缩 | ||
| 26 | + | ||
| 27 | + @return 压缩后的数据 | ||
| 28 | + */ | ||
| 29 | +-(NSData*)compress; | ||
| 30 | + | ||
| 31 | +#pragma mark - 图片合成 | ||
| 32 | + | ||
| 33 | +/** | ||
| 34 | + 图片合成 | ||
| 35 | + | ||
| 36 | + @param image 所需合成的图片 | ||
| 37 | + @param frame 合成图片的frame | ||
| 38 | + @param complete 合成完后的图片 | ||
| 39 | + */ | ||
| 40 | +-(void)synthesisImage:(UIImage *)image withFrame:(CGRect)frame complete:(void (^)(UIImage*image))complete; | ||
| 41 | + | ||
| 42 | +#pragma mark - 图片切角 | ||
| 43 | + | ||
| 44 | +/** | ||
| 45 | + 获取圆形图片 | ||
| 46 | + | ||
| 47 | + @return 圆形图片 | ||
| 48 | + */ | ||
| 49 | +-(UIImage*)getCircleImage; | ||
| 50 | + | ||
| 51 | +/** | ||
| 52 | + 获取圆角矩形图片 | ||
| 53 | + | ||
| 54 | + @return 圆形图片 | ||
| 55 | + */ | ||
| 56 | +-(UIImage*)getRectCircleImage; | ||
| 57 | + | ||
| 58 | +#pragma mark - 重绘图片 | ||
| 59 | + | ||
| 60 | +/** | ||
| 61 | + 从新设定图片大小 | ||
| 62 | + | ||
| 63 | + @param reSize 新大小 | ||
| 64 | + @return 新图片 | ||
| 65 | + */ | ||
| 66 | +-(UIImage *)reSize:(CGSize)reSize; | ||
| 67 | + | ||
| 68 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIImageView+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIImageView+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +@interface UIImageView (DSEMExtension) | ||
| 12 | + | ||
| 13 | +#pragma mark - 虚线 | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + 添加虚线 | ||
| 17 | + | ||
| 18 | + @param color 虚线颜色 | ||
| 19 | + @param length 单条线长度 | ||
| 20 | + @param space 每条线之间的距离 | ||
| 21 | + @param height 线的高度 | ||
| 22 | + */ | ||
| 23 | +-(void)addDottedLineImageWithColor:(UIColor*)color length:(CGFloat)length space:(CGFloat)space height:(CGFloat)height; | ||
| 24 | + | ||
| 25 | +#pragma mark - 添加自定义颜色的图片 | ||
| 26 | + | ||
| 27 | +/** | ||
| 28 | + 添加自定义颜色的图片 | ||
| 29 | + | ||
| 30 | + @param image 图片 | ||
| 31 | + @param csColor 自定义颜色的图片 | ||
| 32 | + */ | ||
| 33 | +-(void)setImage:(UIImage *)image csColor:(UIColor*)csColor; | ||
| 34 | + | ||
| 35 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UILabel+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UILabel+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/10/8. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface UILabel (DSEMExtension) | ||
| 14 | + | ||
| 15 | +#pragma mark - 计算文本大小 | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + 根据行数计算文本的高 | ||
| 19 | + | ||
| 20 | + @param count 限制行数 | ||
| 21 | + @return 高度 | ||
| 22 | + */ | ||
| 23 | +-(CGFloat)calculateHeightWithLimitLineCount:(NSUInteger)count; | ||
| 24 | + | ||
| 25 | +#pragma mark - 分行 | ||
| 26 | + | ||
| 27 | +/** | ||
| 28 | + 分行 | ||
| 29 | + | ||
| 30 | + @return 每行的字数组 | ||
| 31 | + */ | ||
| 32 | +-(NSArray<NSString*>*)separatedLines; | ||
| 33 | + | ||
| 34 | +@end | ||
| 35 | + | ||
| 36 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIScrollView+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIScrollView+DSEMExtension.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2018/11/1. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +#import <UIKit/UIKit.h> | ||
| 9 | + | ||
| 10 | +NS_ASSUME_NONNULL_BEGIN | ||
| 11 | + | ||
| 12 | +@interface UIScrollView (DSEMExtension) | ||
| 13 | + | ||
| 14 | +#pragma mark - 页数 | ||
| 15 | + | ||
| 16 | +/** | ||
| 17 | + 页数 | ||
| 18 | + */ | ||
| 19 | +@property (nonatomic,assign) NSUInteger page; | ||
| 20 | +/** | ||
| 21 | + 一页数据数 默认20条数据 | ||
| 22 | + */ | ||
| 23 | +@property (nonatomic,assign) NSUInteger pageCount; | ||
| 24 | + | ||
| 25 | +#pragma mark - 列表数据 | ||
| 26 | + | ||
| 27 | +/** | ||
| 28 | + 列表数据 | ||
| 29 | + */ | ||
| 30 | +@property (nonatomic,strong) NSMutableArray * listDataArr; | ||
| 31 | + | ||
| 32 | +#pragma mark - 列表数据是否为空 | ||
| 33 | + | ||
| 34 | +/** | ||
| 35 | + 列表数据是否为空 | ||
| 36 | + */ | ||
| 37 | +@property (nonatomic,assign,readonly) BOOL isEmpty; | ||
| 38 | + | ||
| 39 | +#pragma mark - 数据处理 | ||
| 40 | + | ||
| 41 | +/** | ||
| 42 | + 处理获取数据 | ||
| 43 | + | ||
| 44 | + @param dataArr 数据 | ||
| 45 | + @param isError 请求是否失败 | ||
| 46 | + */ | ||
| 47 | +-(void)disposeDataArr:(NSArray*)dataArr isError:(BOOL)isError; | ||
| 48 | +/** | ||
| 49 | + 处理当前页获取的数据 | ||
| 50 | + | ||
| 51 | + @param dataArr 数据 | ||
| 52 | + @param currentPage 当前页数 | ||
| 53 | + @param isError 请求是否失败 | ||
| 54 | + */ | ||
| 55 | +-(void)disposeCurrentPageDataArr:(NSArray*)dataArr currentPage:(NSUInteger)currentPage isError:(BOOL)isError; | ||
| 56 | + | ||
| 57 | +#pragma mark - 刷新 | ||
| 58 | + | ||
| 59 | +/** | ||
| 60 | + 添加刷新 | ||
| 61 | + */ | ||
| 62 | +-(void)addHeaderRefreshBlock:(void (^)(void))block; | ||
| 63 | +/** | ||
| 64 | + 删除刷新 | ||
| 65 | + */ | ||
| 66 | +-(void)removeHeaderRefresh; | ||
| 67 | +/** | ||
| 68 | + 结束头部刷新状态 | ||
| 69 | + */ | ||
| 70 | +-(void)endHeaderRefresh; | ||
| 71 | + | ||
| 72 | +#pragma mark - 加载 | ||
| 73 | + | ||
| 74 | +/** | ||
| 75 | + 添加加载更多 | ||
| 76 | + */ | ||
| 77 | +-(void)addFooterRefreshBlock:(void (^)(void))block; | ||
| 78 | +/** | ||
| 79 | + 删除加载更多 | ||
| 80 | + */ | ||
| 81 | +-(void)removeFooterRefresh; | ||
| 82 | +/** | ||
| 83 | + 结束底部加载状态 | ||
| 84 | + */ | ||
| 85 | +-(void)endFooterRefresh; | ||
| 86 | +/** | ||
| 87 | + 结束底部加载状态并显示没有更多数据的提示 | ||
| 88 | + */ | ||
| 89 | +-(void)endFooterRefreshAndDisplayNoMoreData; | ||
| 90 | +/** | ||
| 91 | + 清除没有更多数据的提示 | ||
| 92 | + */ | ||
| 93 | +-(void)resetNoMoreData; | ||
| 94 | + | ||
| 95 | +@end | ||
| 96 | + | ||
| 97 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UITextField+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UITextField+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/10/9. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | + | ||
| 11 | +NS_ASSUME_NONNULL_BEGIN | ||
| 12 | + | ||
| 13 | +@interface UITextField (DSEMExtension) | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + 获取光标range | ||
| 17 | + | ||
| 18 | + @return range | ||
| 19 | + */ | ||
| 20 | +-(NSRange)selectedRange; | ||
| 21 | + | ||
| 22 | +/** | ||
| 23 | + 根据range改变光标位置 | ||
| 24 | + 备注:UITextField必须为第一响应者才有效 | ||
| 25 | + | ||
| 26 | + @param range range | ||
| 27 | + */ | ||
| 28 | +-(void)setSelectedRange:(NSRange)range; | ||
| 29 | + | ||
| 30 | +@end | ||
| 31 | + | ||
| 32 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIView+DSEMExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIView+DSEMExtension.h | ||
| 3 | +// BKProjectFramework | ||
| 4 | +// | ||
| 5 | +// Created by BIKE on 2018/7/11. | ||
| 6 | +// Copyright © 2018年 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | +#import <MBProgressHUD/MBProgressHUD.h> | ||
| 11 | + | ||
| 12 | +#define DS_showMessage(msg) [DS_APP_KEY_WINDOW showMessage:msg] | ||
| 13 | + | ||
| 14 | +@interface UIView (DSEMExtension) | ||
| 15 | + | ||
| 16 | +#pragma mark - 附加属性 | ||
| 17 | + | ||
| 18 | +/** | ||
| 19 | + x | ||
| 20 | + */ | ||
| 21 | +@property (nonatomic, assign) CGFloat x; | ||
| 22 | +/** | ||
| 23 | + y | ||
| 24 | + */ | ||
| 25 | +@property (nonatomic, assign) CGFloat y; | ||
| 26 | +/** | ||
| 27 | + width | ||
| 28 | + */ | ||
| 29 | +@property (nonatomic, assign) CGFloat width; | ||
| 30 | +/** | ||
| 31 | + height | ||
| 32 | + */ | ||
| 33 | +@property (nonatomic, assign) CGFloat height; | ||
| 34 | +/** | ||
| 35 | + origin | ||
| 36 | + */ | ||
| 37 | +@property (nonatomic, assign) CGPoint origin; | ||
| 38 | +/** | ||
| 39 | + size | ||
| 40 | + */ | ||
| 41 | +@property (nonatomic, assign) CGSize size; | ||
| 42 | +/** | ||
| 43 | + centerX | ||
| 44 | + */ | ||
| 45 | +@property (nonatomic, assign) CGFloat centerX; | ||
| 46 | +/** | ||
| 47 | + centerY | ||
| 48 | + */ | ||
| 49 | +@property (nonatomic, assign) CGFloat centerY; | ||
| 50 | + | ||
| 51 | +#pragma mark - 查找Controller | ||
| 52 | + | ||
| 53 | +/** | ||
| 54 | + 查找controller | ||
| 55 | + | ||
| 56 | + @return UIViewController | ||
| 57 | + */ | ||
| 58 | +-(nullable UIViewController *)findViewController; | ||
| 59 | + | ||
| 60 | +#pragma mark - 加载框 | ||
| 61 | + | ||
| 62 | +/** | ||
| 63 | + 显示加载框 (不可点击) | ||
| 64 | + */ | ||
| 65 | +-(nonnull MBProgressHUD*)showLoading; | ||
| 66 | + | ||
| 67 | +/** | ||
| 68 | + 显示带提示加载框 (不可点击) | ||
| 69 | + | ||
| 70 | + @param remind 提示 | ||
| 71 | + */ | ||
| 72 | +-(void)showLoading:(nullable NSString*)remind; | ||
| 73 | + | ||
| 74 | +/** | ||
| 75 | + 隐藏加载框 (不可点击) | ||
| 76 | + */ | ||
| 77 | +-(void)hideLoading; | ||
| 78 | + | ||
| 79 | +/** | ||
| 80 | + 显示加载框 (可点击) | ||
| 81 | + */ | ||
| 82 | +-(nonnull MBProgressHUD*)showHUD; | ||
| 83 | + | ||
| 84 | +/** | ||
| 85 | + 显示带提示加载框 (可点击) | ||
| 86 | + | ||
| 87 | + @param remind 提示 | ||
| 88 | + */ | ||
| 89 | +-(void)showHUD:(nullable NSString*)remind; | ||
| 90 | + | ||
| 91 | +/** | ||
| 92 | + 隐藏加载框 (可点击) | ||
| 93 | + */ | ||
| 94 | +-(void)hideHUD; | ||
| 95 | + | ||
| 96 | +#pragma mark - 提示框 | ||
| 97 | + | ||
| 98 | +/// 提示框 | ||
| 99 | +/// @param message 提示信息 | ||
| 100 | +-(void)showMessage:(nullable NSString *)message; | ||
| 101 | + | ||
| 102 | +#pragma mark - 加入购物车动画 | ||
| 103 | + | ||
| 104 | +/** | ||
| 105 | + 加入购物车动画 | ||
| 106 | + | ||
| 107 | + @param frame 开始frame | ||
| 108 | + @param targetFrame 结束frame | ||
| 109 | + @param complete 完成 | ||
| 110 | + */ | ||
| 111 | +-(void)addShopingCartAnimateWithbeginFrame:(CGRect)frame targetFrame:(CGRect)targetFrame complete:(nullable void (^)(void))complete; | ||
| 112 | + | ||
| 113 | +#pragma mark - 截图 | ||
| 114 | + | ||
| 115 | +/** | ||
| 116 | + 截图 | ||
| 117 | + | ||
| 118 | + @return 截图 | ||
| 119 | + */ | ||
| 120 | +-(nonnull UIImage *)getScreenshot; | ||
| 121 | + | ||
| 122 | +@end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIView+DSEmptyView.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIView+DSEmptyView.h | ||
| 3 | +// DSBaseModule | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2020/1/17. | ||
| 6 | +// Copyright © 2020 CNLive. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | +#import "DSEmptyView.h" | ||
| 11 | + | ||
| 12 | +NS_ASSUME_NONNULL_BEGIN | ||
| 13 | + | ||
| 14 | +@interface UIView (DSEmptyView) | ||
| 15 | + | ||
| 16 | +#pragma mark - 空白界面 | ||
| 17 | + | ||
| 18 | +/// 空白界面 | ||
| 19 | +@property (nonatomic,strong,nullable) DSEmptyView * emptyView; | ||
| 20 | + | ||
| 21 | +/// 是否有空白界面 | ||
| 22 | +@property (nonatomic,assign) BOOL isHaveEmpty; | ||
| 23 | + | ||
| 24 | +/// 显示空白界面 | ||
| 25 | +/// @param emptyImage 空白图片 | ||
| 26 | +/// @param remind 空白提示 | ||
| 27 | +/// @param hint 空白副提示 | ||
| 28 | +/// @param disposeBtnTitle 处理按钮标题 | ||
| 29 | +/// @param tapDisposeBtnCallBack 点击处理返回 | ||
| 30 | +-(void)displayEmptyView:(nullable UIImage*)emptyImage remind:(nullable NSString*)remind hint:(nullable NSString*)hint disposeBtnTitle:(nullable NSString*)disposeBtnTitle tapDisposeBtnCallBack:(nullable void (^)(void))tapDisposeBtnCallBack; | ||
| 31 | + | ||
| 32 | +/// 显示空白界面(带插入边距) | ||
| 33 | +/// @param emptyImage 空白图片 | ||
| 34 | +/// @param remind 空白提示 | ||
| 35 | +/// @param hint 空白副提示 | ||
| 36 | +/// @param disposeBtnTitle 处理按钮标题 | ||
| 37 | +/// @param inset 插入边距 | ||
| 38 | +/// @param tapDisposeBtnCallBack 点击处理返回 | ||
| 39 | +-(void)displayEmptyView:(nullable UIImage*)emptyImage remind:(nullable NSString*)remind hint:(nullable NSString*)hint disposeBtnTitle:(nullable NSString*)disposeBtnTitle inset:(UIEdgeInsets)inset tapDisposeBtnCallBack:(nullable void (^)(void))tapDisposeBtnCallBack; | ||
| 40 | + | ||
| 41 | +/// 给空白界面添加约束 约束为与父视图上下左右inset | ||
| 42 | +-(void)addEmptyViewLayout; | ||
| 43 | + | ||
| 44 | +/// 删除没有数据界面 | ||
| 45 | +-(void)removeEmptyView; | ||
| 46 | + | ||
| 47 | +@end | ||
| 48 | + | ||
| 49 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIView+DSRoundedRectView.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIView+DSRoundedRectView.h | ||
| 3 | +// DSToolsModule | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2020/2/12. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +#import <UIKit/UIKit.h> | ||
| 9 | + | ||
| 10 | +NS_ASSUME_NONNULL_BEGIN | ||
| 11 | + | ||
| 12 | +@interface UIView (DSRoundedRectView) | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + 切角 | ||
| 16 | + | ||
| 17 | + @param radius 度数 | ||
| 18 | + */ | ||
| 19 | +-(void)cutRadius:(CGFloat)radius; | ||
| 20 | + | ||
| 21 | +/** | ||
| 22 | + 切角 | ||
| 23 | + | ||
| 24 | + @param corner 哪个角 | ||
| 25 | + @param cornerRadii 大小 | ||
| 26 | + */ | ||
| 27 | +-(void)cutCorner:(UIRectCorner)corner cornerRadii:(CGSize)cornerRadii; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + 加圆形边框(超出切掉) | ||
| 31 | + | ||
| 32 | + @param color 颜色 | ||
| 33 | + @param lineWidth 线宽 | ||
| 34 | + @param radius 度数 | ||
| 35 | + */ | ||
| 36 | +-(void)addRoundBorderWithColor:(nonnull UIColor*)color lineWidth:(CGFloat)lineWidth radius:(CGFloat)radius; | ||
| 37 | + | ||
| 38 | +/** | ||
| 39 | + 删除切角 | ||
| 40 | + */ | ||
| 41 | +-(void)removeCutRadius; | ||
| 42 | + | ||
| 43 | +@end | ||
| 44 | + | ||
| 45 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIViewController+DSNavExtension.h
0 → 100644
| 1 | +// | ||
| 2 | +// UIViewController+DSNavExtension.h | ||
| 3 | +// DSCnliveShopSDK | ||
| 4 | +// | ||
| 5 | +// Created by zhaolin on 2019/12/23. | ||
| 6 | +// Copyright © 2019 BIKE. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | +//#import "DSViewControllerNaviDelegate.h" | ||
| 11 | +#import "DSTransitionEnum.h" | ||
| 12 | + | ||
| 13 | +NS_ASSUME_NONNULL_BEGIN | ||
| 14 | + | ||
| 15 | +@interface UIViewController (DSNavExtension) | ||
| 16 | + | ||
| 17 | +#pragma mark - 属性 | ||
| 18 | + | ||
| 19 | +/// push转场动画的方向 | ||
| 20 | +@property (nonatomic,assign) DSTransitionAnimaterDirection animaterDirection; | ||
| 21 | + | ||
| 22 | +//#pragma mark - 属性 | ||
| 23 | +// | ||
| 24 | +///// 是否用自定义的转场动画 | ||
| 25 | +//@property (nonatomic,assign) BOOL isUseCsTransition; | ||
| 26 | +///// 导航自定义转场动画实现代理类 | ||
| 27 | +//@property (nonatomic,strong,nullable) DSViewControllerNaviDelegate * naviDelegate; | ||
| 28 | +// | ||
| 29 | +//#pragma mark - 方法 | ||
| 30 | +// | ||
| 31 | +///// 自定义跳转方法 | ||
| 32 | +///// @param viewController viewController | ||
| 33 | +///// @param animated animated | ||
| 34 | +///// @param animaterDirection 动画方向 | ||
| 35 | +//-(void)csPushViewController:(UIViewController *)viewController animated:(BOOL)animated animaterDirection:(DSTransitionAnimaterDirection)animaterDirection; | ||
| 36 | +// | ||
| 37 | +///// 自定义返回方法 | ||
| 38 | +///// @param animated animated 动画方向为自定义跳转方法时定义的方向 | ||
| 39 | +//-(void)csPopViewControllerAnimated:(BOOL)animated; | ||
| 40 | + | ||
| 41 | +@end | ||
| 42 | + | ||
| 43 | +NS_ASSUME_NONNULL_END |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Info.plist
No preview for this file type