2015-02-08 65 views
0

我想推新的UIViewController,但新的viewcontroller不能調用像ViewDidLoad,ViewWillAppear,AwakeFromNib這樣的重寫方法,只有構造函數會被調用... I我正在使用故事板並用以下代碼推動控制器:(Xamarin Studio)Storyboard UIViewController被覆蓋的方法沒有被調用

ContentViewController cvc = AppDelegate.storyboard.InstantiateViewController ("ContentViewController") as ContentViewController; 
NavigationController.PushViewController (cvc, true); 

任何想法?謝謝你的幫助。

回答

0

打掃一切,關閉Xamarin Studio並重建解決了問題,無論如何thanx。

相關問題