比较简单,也很实用,方法大同小异,仅做记录,方法的系统记录如下:

[self dismissViewControllerAnimated:YES completion:^{

        // 这是从一个模态出来的页面跳到tabbar的某一个页面

        AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];

        UITabBarController *tabViewController = (UITabBarController *) appDelegate.window.rootViewController;

        [tabViewController setSelectedIndex:2];

    }];

需要跳转的时候,跳即可

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案