1
我一直在嘗試從我的一個視圖中呈現模態視圖,我遵循以下iDev教程/源代碼實現。自定義選項卡欄通過將它們作爲子視圖插入tabBar下來管理視圖,因此當我調用要在子視圖中顯示的模式視圖時,它將在標籤欄的底部進行隱藏。我已將以下代碼切換到標籤欄子視圖的上方,該視圖允許顯示整個屏幕,但仍會產生動畫問題。iDev自定義選項卡欄模式窗口被選項卡欄隱藏。我該如何改變這一點?
// Set the view controller's frame to account for the tab bar
viewController.view.frame = CGRectMake(0,0,self.view.bounds.size.width, self.view.bounds.size.height-(tabBarGradient.size.height));
// Set the tag so we can find it later
viewController.view.tag = SELECTED_VIEW_CONTROLLER_TAG;
// Add the new view controller's view
[self.view insertSubview:viewController.view aboveSubview:tabBar];
http://idevrecipes.com/2011/01/04/how-does-the-twitter-iphone-app-implement-a-custom-tab-bar/
請幫助這是推動我瘋了!
我已經把想實現這一點,但似乎無法推測出來。您是否在要實現它的任何位置的標題中調用@class MyAppDelegate? – morcutt
我想要實現的任何地方我正在添加'#import「MyAppDelegate.h」'。 –