0
我正在關注Utility Application
中的CoreDataBooks
示例代碼,到目前爲止,我已能夠顯示tableView
而沒有Navigation bar
頂部。我怎樣才能讓Naviagation bar
顯示在頂部? TableView
位於FlipsideViewController
。實用應用程序中的主窗口
我認爲問題在於示例代碼有MainWindow.xib
和Utility Application
沒有。如何在FlipsideViewController
上創建MainWindow.xib
並且只有Navigation Controller
?
謝謝?
我不認爲我理解你的觀點。在我的FlipsideViewController中,沒有UIWindow。在我的MainViewController中只有一個UIWindow。如示例代碼所示,MainWindow也沒有XIB。最後,我會在哪裏放置你的代碼? –
@Ahan Malhotra是的,這是正確的,每個應用程序只有一個UIWindow,你只需要一個放置你的第一個視圖,你不需要任何其他的UIWindows。你會把你的代碼放在你的FlipsideViewController實例下面,然後把這個對象放在initwithrootviewController中,然後不顯示你的flipsideViewController顯示navigationController。 –
我會把代碼放在我的FlipsideViewController的viewDidLoad中?當我這樣做時,我得到錯誤'意外的接口名'FlipsideViewController':期望的表達式' –