[問題] 如何指定某選項才載入UITabBarController?
大家好,我第一次問 xcode 的問題
標題可能寫得不是很明確,請大家見諒
我的問題可以用下圖表示
http://ppt.cc/ywJz
我在app啟動的時候載入了一個UITableView
並且在 didSelectRowAtIndexPath 中試圖啟動 UITabBarController
UITabBarController *mainTabBar = [[UITabBarController alloc]
initWithNibName:@"MainTabBar" bundle:nil];
[self presentModalViewController:mainTabBar animated:YES];
MainTabBar.xib 已經放了 UITabBarController 相關的物件
我在點選 AAA 後,app的確秀出了 UITabBarController (如圖右)
但這個 UITabBarController 卻是一片漆黑
除了下方可看出是 Tabbar 外其他什麼也沒有
想上網查詢 UITabBarController 相關的實作 example code
但是看到的都是app一啟動就載入 UITabBarController 的程式碼
這些範例程式碼幾乎都要從Appdelegate開始改起,但這並不是我要做的
請問我要修改什麼地方才能讓 UITabBarController 秀出應有的 View 呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.87.142.18
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章