我收到了一个带有故事板和多个视图控制器的SDK。 在我的react-native模块中,我想公开一个方法,该方法将过渡到此故事板并返回结果。 我试图遵循以下答案: React-Native iOS - How can I navigate to a non-React-Native view (native iOS view controller) from a React-Native view with a button press?
我也尝试过此代码(但我们无权访问navigationController):
- (void)openStoryBoard{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"NAME_OF_THE_STORYBOARD" bundle:nil];
UIViewController *vc = [storyboard instantiateInitialViewController];
[self.navigationController pushViewController:vc animated:true];
}
在Android中,我刚刚调用了StartActivityForResult,但在ios中却找不到。
欢迎任何建议。