【发布时间】:2016-08-28 08:57:16
【问题描述】:
我在我的应用程序中使用了 branch.io SDK。我的应用程序正在使用 UITabBarController。我可以设法打开指向我的选择视图的链接,但它的视图是模态的,当我关闭它时,它会显示我的初始屏幕,而我在用户登录时已经绕过屏幕。 我怎样才能设法将它呈现为不作为模态并接近除主视图之外的某些视图?这就是我在 appdelegate.m 中设置分支的方式
Branch *branch = [Branch getInstance];
[branch initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {
DetailController *controller = [[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"DetailView"];
[branch registerDeepLinkController:controller forKey:@"userid"];
[branch initSessionWithLaunchOptions:launchOptions automaticallyDisplayDeepLinkController:YES];
}];
【问题讨论】:
标签: ios objective-c branch.io