在委托类我写的代码如下显示标签栏从第二屏幕iphone
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
[self generateFirstScreen];
[self removeFirstScreen]; // On login check implement this method or u can directly write the snippet here as well.
[self prepareControllersOnTabs]; //your tab controller code function
[self.window makeKeyAndVisible];
return YES;
}
-(void) removeFirstScreen
{
[firstScreen removeFromSuperView];
self.window.rootViewController = self.tabBarController;
[firstScreen release];
}
-(void) generateFirstScreen
{
FirstScreen *firstScreen = [[FirstScreen alloc]init];
[self.navigationController pushViewController:firstScreen animated:YES];
[firstScreen release];
}
但generateFirstScreen工作正常,但removeFirstScreen给出了一个例外,请帮帮我。
什么是你的实际需求.. – Narayana 2012-03-27 10:01:08
我的实际需要是第一屏出标签栏的控制和从第二个屏幕开始标签栏会提前 – Venkat 2012-03-27 10:25:45
来.Thanks来此聊天室http://chat.stackoverflow.com/rooms/8469/room-for-and-ra-pradesh-mobile-developers – Narayana 2012-03-27 10:26:51