我有以下問題:瀏覽屏幕的標籤欄和按鈕
在我的應用程序有兩種方法可以導航到其他屏幕:通過按鈕或標籤欄。
所有屏幕都有調整其他屏幕的選項卡欄,但主屏幕是有按鈕但沒有選項卡欄的屏幕。
當我開始開發我的應用程序時,我選擇了標籤欄應用程序模板,如果我通過按下標籤調用屏幕,它會正常工作。當我使用主屏幕時,問題開始:
- 我需要在此特定屏幕中「隱藏」標籤欄。
- 在主屏幕中,如果我通過按鈕調用新屏幕,則標籤欄會在新屏幕中消失(因爲屏幕是通過按鈕調用的,而不是通過標籤欄)。
要解決這我想,也許我可以創建自定義標籤欄(我還不知道如何),並把它在我的屏幕就像一個UIControl,所以以這種方式,如果我需要改變標籤欄的修改將能夠在調用該控件的所有屏幕上進行。
你有什麼建議?創建自定義標籤欄並像UIControl一樣使用它是個不錯的主意?如果是的話,我該如何創建一個?
我使用它來調用Windows
RecurringGiftListViewController *listViewController = [[RecurringGiftListViewController alloc] initWithNibName:@"RecurringGiftListViewController" bundle:nil];
listViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:listViewController animated:YES];
[listViewController release];
您可以把您在使用推看法位代碼? – Ahmed
@Ahmed當然,我使用,我用這個來調用窗口RecurringGiftListViewController * listViewController = [[RecurringGiftListViewController alloc] initWithNibName:@「RecurringGiftListViewController」bundle:nil]; listViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentModalViewController:listViewController animated:YES]; [listViewController release]; – avmauricio