浏览代码

make styler some methods static

Ran Greenberg 8 年前
父节点
当前提交
7c031b7da8
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      ios/RNNStyler.m

+ 3
- 3
ios/RNNStyler.m 查看文件

40
 
40
 
41
 -(void)setStyleOnAppear:(UIViewController*)vc styleParams:(NSDictionary*)styleParams {
41
 -(void)setStyleOnAppear:(UIViewController*)vc styleParams:(NSDictionary*)styleParams {
42
     
42
     
43
-    [self setNavBarStyle:vc styleParams:styleParams];
43
+    [RNNStyler setNavBarStyle:vc styleParams:styleParams];
44
     [self setStyleOnAppear:vc styleParams:styleParams];
44
     [self setStyleOnAppear:vc styleParams:styleParams];
45
     
45
     
46
     NSString *screenBackgroundColor = styleParams[STYLE_SCREEN_BACKGROUD_COLOR];
46
     NSString *screenBackgroundColor = styleParams[STYLE_SCREEN_BACKGROUD_COLOR];
63
 #pragma mark - Setters
63
 #pragma mark - Setters
64
 
64
 
65
 
65
 
66
--(void)setNavBarStyle:(UIViewController*)vc styleParams:(NSDictionary*)styleParams {
66
++(void)setNavBarStyle:(UIViewController*)vc styleParams:(NSDictionary*)styleParams {
67
     
67
     
68
     NSString *navBarBackgroundColor = styleParams[STYLE_NAV_BAR_BACKGROUND_COLOR];
68
     NSString *navBarBackgroundColor = styleParams[STYLE_NAV_BAR_BACKGROUND_COLOR];
69
     if (navBarBackgroundColor) {
69
     if (navBarBackgroundColor) {
122
 }
122
 }
123
 
123
 
124
 
124
 
125
--(void)setTabBarStyle:(UIViewController*)vc styleParams:(NSDictionary*)styleParams {
125
++(void)setTabBarStyle:(UIViewController*)vc styleParams:(NSDictionary*)styleParams {
126
     
126
     
127
     NSNumber *drawUnderTabBar = styleParams[STYLE_DRAW_UNDER_TAB_BAR];
127
     NSNumber *drawUnderTabBar = styleParams[STYLE_DRAW_UNDER_TAB_BAR];
128
     BOOL drawUnderTabBarBool = drawUnderTabBar ? [drawUnderTabBar boolValue] : NO;
128
     BOOL drawUnderTabBarBool = drawUnderTabBar ? [drawUnderTabBar boolValue] : NO;