Commit 95fe4442c7a0b344cf459ef3d4254d17d03872da
1 parent
e713818a
0.0.23 tabBar添加方法切换显示索引
Showing
4 changed files
with
8 additions
and
2 deletions
DSBaseModuleF.podspec
DSBaseModuleF/Frameworks/DSBaseModule.framework/DSBaseModule
No preview for this file type
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSTabBarViewController.h
| ... | ... | @@ -38,11 +38,17 @@ NS_ASSUME_NONNULL_BEGIN |
| 38 | 38 | @property (nonatomic,strong) UIColor * selectColor; |
| 39 | 39 | /// 所有的子控制器 |
| 40 | 40 | @property (nonatomic,strong,readonly) NSMutableArray<UIViewController*> * viewControllers; |
| 41 | -/// 当前显示的索引 | |
| 41 | +/// 当前显示的索引 (用这个切换索引,有这个代理时tabBar:switchIndex:fromIndex:不会执行,只会切换索引) | |
| 42 | 42 | @property (nonatomic,assign) NSUInteger displayIndex; |
| 43 | 43 | /// 当前显示的子控制器 |
| 44 | 44 | @property (nonatomic,weak,readonly) UIViewController * displayViewController; |
| 45 | 45 | |
| 46 | +#pragma mark - 方法 | |
| 47 | + | |
| 48 | +/// 切换显示index (用这个切换索引,有这个代理时tabBar:switchIndex:fromIndex:会执行) | |
| 49 | +/// @param displayIndex 显示索引 | |
| 50 | +-(void)switchDisplayIndex:(NSUInteger)displayIndex; | |
| 51 | + | |
| 46 | 52 | #pragma mark - UI |
| 47 | 53 | |
| 48 | 54 | /** | ... | ... |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Info.plist
No preview for this file type