大家好,又见面了,我是全栈君,今天给大家准备了Idea注册码。
第一步:
#import "AppDelegate.h"
步骤二:
在须要跳转的地方:
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; UITabBarController *tabViewController = (UITabBarController *) appDelegate.window.rootViewController; [tabViewController setSelectedIndex:2];
參考:
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/117752.html原文链接:https://javaforall.net