0
所以我做了一個網頁的UIViewController,我希望這是我的「主視圖」UINavigation控制研究
所以在我的應用程序的代表...
HomePage *homepage = [[HomePage alloc]initWithNibName:nil bundle:nil];
UINavigationController *navigator = [[UINavigationController alloc] initWithRootViewController:homepage];
navigator.navigationBar.hidden = YES;
[self.window addSubview:navigator.view];
[self.window makeKeyAndVisible];
我在這添加到navigationController我stroryboard(我認爲這可能是問題的一部分)
問題
我的主頁有按鈕和一個較小的滑動圖......這些事情不工作在所有...他們只是作爲一個圖像/桅杆
當我開始項目,我有一個UIViewController在故事板,我「用」創建這個主頁,但沒有做任何事情,除了添加一個圖像,我現在編程無論如何。
我現在正試圖在不中斷整個項目的情況下將其刪除。 我也測試了我的homePage並調用了「viewDidLoad」。
感謝您的幫助
電話我替換此行
你想要什麼?你的問題不清楚。 – Ganapathy
試試這個,http://stackoverflow.com/questions/19316713/add-navigation-bar-on-a-view-controller/19317010#19317010 – karthika