Tuya iOS Smart Life App SDK 5.15.0
<ThingTabBarControllerDelegate> Protocol Reference

#import <ThingTabBarControllerDelegate.h>

Inheritance diagram for <ThingTabBarControllerDelegate>:

Instance Methods

(NSUInteger) - thing_defaultTabIndex
 
(NSDictionary< NSAttributedStringKey, id > *) - thing_tabItemTitleTextAttributesForState:
 
(void) - thing_tabBar:willAdd:withItemAttribute:
 
(BOOL) - thing_tabBar:childControllerCanBeSelected:withItemAttribute:
 
(BOOL) - thing_tabBar:shouldShow:withItemAttribute:
 
(void) - thing_tabBar:didSelect:withItemAttribute:
 
(void) - thing_tabBar:didUnselect:withItemAttribute:
 
(BOOL) - thing_tabBar:shouldSetBadge:withViewController:itemAttribute:
 
(NSUInteger) - thing_defaultTabIndex
 
(NSDictionary< NSAttributedStringKey, id > *) - thing_tabItemTitleTextAttributesForState:
 
(void) - thing_tabBar:willAdd:withItemAttribute:
 
(BOOL) - thing_tabBar:childControllerCanBeSelected:withItemAttribute:
 
(BOOL) - thing_tabBar:shouldShow:withItemAttribute:
 
(void) - thing_tabBar:didSelect:withItemAttribute:
 
(void) - thing_tabBar:didUnselect:withItemAttribute:
 
(BOOL) - thing_tabBar:shouldSetBadge:withViewController:itemAttribute:
 

Detailed Description

Definition at line 10 of file ThingTabBarControllerDelegate.h.

Method Documentation

◆ thing_defaultTabIndex [1/2]

- (NSUInteger) thing_defaultTabIndex
optional

◆ thing_defaultTabIndex [2/2]

- (NSUInteger) thing_defaultTabIndex
optional

◆ thing_tabBar:childControllerCanBeSelected:withItemAttribute: [1/2]

- (BOOL) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
childControllerCanBeSelected: (__kindof UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

item是否允许被选中 该方法仅在defaultSelect无效时回调 如果实现此方法 请 不要 在此回调中处理业务逻辑 请 务必仅返回 YES/NO 默认根据ThingTabItemAttribute.viewController判断

◆ thing_tabBar:childControllerCanBeSelected:withItemAttribute: [2/2]

- (BOOL) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
childControllerCanBeSelected: (__kindof UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

item是否允许被选中 该方法仅在defaultSelect无效时回调 如果实现此方法 请 不要 在此回调中处理业务逻辑 请 务必仅返回 YES/NO 默认根据ThingTabItemAttribute.viewController判断

◆ thing_tabBar:didSelect:withItemAttribute: [1/2]

- (void) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
didSelect: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

选中

◆ thing_tabBar:didSelect:withItemAttribute: [2/2]

- (void) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
didSelect: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

选中

◆ thing_tabBar:didUnselect:withItemAttribute: [1/2]

- (void) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
didUnselect: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

取消选中

◆ thing_tabBar:didUnselect:withItemAttribute: [2/2]

- (void) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
didUnselect: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

取消选中

◆ thing_tabBar:shouldSetBadge:withViewController:itemAttribute: [1/2]

- (BOOL) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
shouldSetBadge: (NSString *)  value
withViewController: (UIViewController *)  childController
itemAttribute: (ThingTabItemAttribute *)  attr 
optional

设置badge

◆ thing_tabBar:shouldSetBadge:withViewController:itemAttribute: [2/2]

- (BOOL) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
shouldSetBadge: (NSString *)  value
withViewController: (UIViewController *)  childController
itemAttribute: (ThingTabItemAttribute *)  attr 
optional

设置badge

◆ thing_tabBar:shouldShow:withItemAttribute: [1/2]

- (BOOL) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  controller
shouldShow: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

用户点击tab后,是否允许展示对应vc

◆ thing_tabBar:shouldShow:withItemAttribute: [2/2]

- (BOOL) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  controller
shouldShow: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

用户点击tab后,是否允许展示对应vc

◆ thing_tabBar:willAdd:withItemAttribute: [1/2]

- (void) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
willAdd: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

将要添加到tabbar

◆ thing_tabBar:willAdd:withItemAttribute: [2/2]

- (void) thing_tabBar: (UITabBarController< ThingTabBarControllerProtocol > *)  tabController
willAdd: (UIViewController *)  childController
withItemAttribute: (ThingTabItemAttribute *)  attr 
optional

将要添加到tabbar

◆ thing_tabItemTitleTextAttributesForState: [1/2]

- (NSDictionary< NSAttributedStringKey, id > *) thing_tabItemTitleTextAttributesForState: (UIControlState)  state
optional

设置tabItem上title的样式

◆ thing_tabItemTitleTextAttributesForState: [2/2]

- (NSDictionary< NSAttributedStringKey, id > *) thing_tabItemTitleTextAttributesForState: (UIControlState)  state
optional

设置tabItem上title的样式


The documentation for this protocol was generated from the following files: