正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -27,17 +27,20 @@ RCT_EXPORT_METHOD(init:(NSDictionary *)options) | @@ -27,17 +27,20 @@ RCT_EXPORT_METHOD(init:(NSDictionary *)options) | ||
| 27 | } | 27 | } |
| 28 | RCT_EXPORT_METHOD(gotoNative:(NSDictionary*)param) | 28 | RCT_EXPORT_METHOD(gotoNative:(NSDictionary*)param) |
| 29 | { | 29 | { |
| 30 | + dispatch_async(dispatch_get_main_queue(), ^{ | ||
| 30 | self.rootVc = [ADDelegta sharedAppDelegate].window.rootViewController; | 31 | self.rootVc = [ADDelegta sharedAppDelegate].window.rootViewController; |
| 31 | VodeAdController* vvc = [VodeAdController new]; | 32 | VodeAdController* vvc = [VodeAdController new]; |
| 32 | vvc.param = param; | 33 | vvc.param = param; |
| 33 | [ADDelegta sharedAppDelegate].window.rootViewController = vvc; | 34 | [ADDelegta sharedAppDelegate].window.rootViewController = vvc; |
| 34 | [[ADDelegta sharedAppDelegate].window makeKeyAndVisible]; | 35 | [[ADDelegta sharedAppDelegate].window makeKeyAndVisible]; |
| 36 | + }); | ||
| 35 | } | 37 | } |
| 36 | RCT_EXPORT_METHOD(backJS) | 38 | RCT_EXPORT_METHOD(backJS) |
| 37 | { | 39 | { |
| 38 | - | 40 | + dispatch_async(dispatch_get_main_queue(), ^{ |
| 39 | [ADDelegta sharedAppDelegate].window.rootViewController = self.rootVc; | 41 | [ADDelegta sharedAppDelegate].window.rootViewController = self.rootVc; |
| 40 | [[ADDelegta sharedAppDelegate].window makeKeyAndVisible]; | 42 | [[ADDelegta sharedAppDelegate].window makeKeyAndVisible]; |
| 43 | + }); | ||
| 41 | } | 44 | } |
| 42 | 45 | ||
| 43 | 46 |
-
请 注册 或 登录 后发表评论