0
点赞
收藏
分享

微信扫一扫

不通过底部的工具栏跳转到指定的tabBar上

扒皮狼 2021-09-29 阅读 26
iOS OC开发

    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
    UIViewController *controller = app.window.rootViewController;
    JCTabBarController *rvc = (JCTabBarController *)controller;
    [rvc setSelectedIndex:1];//需要跳转的tabBar的索引,tabBar默认的索引是从0开始的。
    [self.navigationController popToRootViewControllerAnimated:YES];
举报

相关推荐

0 条评论