We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OC中注册
swift 中调用open MGJRouter.open(Router_Tab) { result in print(res) }
在OC中completion(@"xxxx")报错 Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
OC中注册
{
[MGJRouter registerWithHandler:Router_Tab :^(NSDictionary<NSString *,id> * _Nullable routerParameters) {
NSInteger index = (NSInteger)routerParameters[@"index"];
[CYLPlusButtonSubclass registerPlusButton];
CYLTabBarControllerConfig *tabBarControllerConfig = [[CYLTabBarControllerConfig alloc] init];
CYLTabBarController *tabBarController = tabBarControllerConfig.tabBarController;
tabBarController.delegate = (id )kAppDelegate;
tabBarController.selectedIndex = index;
[kAppDelegate.window setRootViewController:tabBarController];
void(^completion)(id result) = routerParameters[@"MGJRouterParameterCompletion"];
completion(@"completion");
}];
}
swift 中调用open
MGJRouter.open(Router_Tab) { result in
print(res)
}
在OC中completion(@"xxxx")报错 Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
The text was updated successfully, but these errors were encountered: