iOS 在TabViewController中的一个ViewController跳转到另一个ViewController

步骤一:

#import "AppDelegate.h"

步骤二:

在需要跳转的地方:

    AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    UITabBarController *tabViewController = (UITabBarController *) appDelegate.window.rootViewController;
    [tabViewController setSelectedIndex:2];

参考:

http://stackoverflow.com/questions/10307350/any-code-example-of-how-access-viewcontroller-from-uitabbarcontroller

你可能感兴趣的:(iOS 在TabViewController中的一个ViewController跳转到另一个ViewController)