1234567891011121314151617181920212223242526272829303132333435 |
- #import "UITabBarController+RNNOptions.h"
- #import "RNNTabBarController.h"
-
- @implementation UITabBarController (RNNOptions)
-
- - (void)rnn_setCurrentTabIndex:(NSUInteger)currentTabIndex {
- [self setSelectedIndex:currentTabIndex];
- }
-
- - (void)rnn_setCurrentTabID:(NSString *)currentTabId {
- [(RNNTabBarController*)self setSelectedIndexByComponentID:currentTabId];
- }
-
- - (void)rnn_setTabBarTestID:(NSString *)testID {
- self.tabBar.accessibilityIdentifier = testID;
- }
-
- - (void)rnn_setTabBarBackgroundColor:(UIColor *)backgroundColor {
- self.tabBar.barTintColor = backgroundColor;
- }
-
- - (void)rnn_setTabBarStyle:(UIBarStyle)barStyle {
- self.tabBar.barStyle = barStyle;
- }
-
- - (void)rnn_setTabBarTranslucent:(BOOL)translucent {
- self.tabBar.translucent = translucent;
- }
-
- - (void)rnn_setTabBarHideShadow:(BOOL)hideShadow {
- self.tabBar.clipsToBounds = hideShadow;
- }
-
- @end
|