瀏覽代碼

add tabBarDelegate -not really needed since RCCTabBarController is already delegate to him self (inheritss from UITabBarController). adding this for the record. (#604)

Ran 7 年之前
父節點
當前提交
84f30797c0
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      ios/RCCTabBarController.h

+ 1
- 1
ios/RCCTabBarController.h 查看文件

@@ -1,7 +1,7 @@
1 1
 #import <UIKit/UIKit.h>
2 2
 #import "RCTBridge.h"
3 3
 
4
-@interface RCCTabBarController : UITabBarController
4
+@interface RCCTabBarController : UITabBarController <UITabBarDelegate>
5 5
 
6 6
 - (instancetype)initWithProps:(NSDictionary *)props children:(NSArray *)children globalProps:(NSDictionary*)globalProps bridge:(RCTBridge *)bridge;
7 7
 - (void)performAction:(NSString*)performAction actionParams:(NSDictionary*)actionParams bridge:(RCTBridge *)bridge completion:(void (^)(void))completion;