摘要:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; //初始化 tabBarItem对应的ViewController UIViewController *viewCtrl1 = [[UIViewController alloc] init]; v... 阅读全文
摘要:
新建一个简单视图iOS工程,在ViewController的viewDidLoad中代码如下- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. tabBarCtrl = [[UITabBarController alloc] init];//要加入的TabBarController tabBarCtrl.delegate = self; // firstViewCtl = [[UIV... 阅读全文