UIWindow(FWApplication)
@interface UIWindow (FWApplication)
/// 关闭所有弹出控制器,完成时回调。如果没有present控制器,直接回调
- (void)fw_dismissViewControllers:(nullable void (^)(void))completion NS_REFINED_FOR_SWIFT;
/// 选中并获取指定索引TabBar根视图控制器,适用于Tabbar包含多个Navigation结构,找不到返回nil
- (nullable __kindof UIViewController *)fw_selectTabBarIndex:(NSUInteger)index NS_REFINED_FOR_SWIFT;
/// 选中并获取指定类TabBar根视图控制器,适用于Tabbar包含多个Navigation结构,找不到返回nil
- (nullable __kindof UIViewController *)fw_selectTabBarController:(Class)viewController NS_REFINED_FOR_SWIFT;
/// 选中并获取指定条件TabBar根视图控制器,适用于Tabbar包含多个Navigation结构,找不到返回nil
- (nullable __kindof UIViewController *)fw_selectTabBarBlock:(BOOL (NS_NOESCAPE ^)(__kindof UIViewController *viewController))block NS_REFINED_FOR_SWIFT;
@end
Undocumented
-
关闭所有弹出控制器,完成时回调。如果没有present控制器,直接回调
Declaration
Objective-C
- (void)fw_dismissViewControllers:(nullable void (^)(void))completion;
-
选中并获取指定索引TabBar根视图控制器,适用于Tabbar包含多个Navigation结构,找不到返回nil
Declaration
Objective-C
- (nullable __kindof UIViewController *)fw_selectTabBarIndex:(NSUInteger)index;
-
选中并获取指定类TabBar根视图控制器,适用于Tabbar包含多个Navigation结构,找不到返回nil
Declaration
Objective-C
- (nullable __kindof UIViewController *)fw_selectTabBarController: (nonnull Class)viewController;
-
选中并获取指定条件TabBar根视图控制器,适用于Tabbar包含多个Navigation结构,找不到返回nil
Declaration
Objective-C
- (nullable __kindof UIViewController *)fw_selectTabBarBlock: (nonnull BOOL (^)(__kindof UIViewController *_Nonnull __strong))block;