2011-08-04 38 views
0

我越來越擅長使用xcode和目標c,但只能從模板中使用。iPhone在選項卡欄應用程序模板上創建TabBarController之前

我希望我的應用程序加載到一個視圖登錄,然後它到達我設置的標籤欄控制器。

我相信這可以在應用程序代理的'didfinishlaunchingwithoptions'部分完成,但之後我不知道如何登錄成功後我可以再次顯示選項卡控制器。

我會任何幫助:)

+0

ü要顯示第一顯示視圖,而無需使用的TabBar控制器或不 – ram

回答

0

使用modal views此表示感謝。 示例here

+0

花點心思,多數民衆贊成正是我做了!謝謝你的回答! – MrPink

0

我想你想是這樣的

LoginViewController *loginViewController = [[[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil] autorelease]; 
    [tabBarController presentModalViewController:loginViewController animated:YES]; 

內didfinishlaunchingwithoptions

相關問題