2012-04-14 43 views
0

我建了一個故事板是這樣的:爲什麼我的Storyboard無法在模擬器上啓動?

enter image description here

我沒有寫一行代碼,和我的設置似乎是正確的。

enter image description here

那麼,爲什麼我總是在模擬器黑屏?

enter image description here

請幫助我。

+0

您需要在info.plist文件中指定storybord文件名.... – 2012-04-14 14:02:36

回答

2

您的應用程序代表是否明確創建了*window?如果是這樣,請刪除該行代碼。

// self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 

但保留屬性定義:

@property (strong, nonatomic) UIWindow *window; // keep this 
+0

thx,但沒有工作,拋出異常:原因:' - [TabTableAppDelegate setWindow:]:unrecognized選擇器發送到實例0x6a179e0' – oratis 2012-04-14 09:38:24

+0

請示出您的應用程序代理 – QED 2012-04-14 13:08:53

+0

thx psoft,我不熟悉新的故事板功能 – oratis 2012-04-14 15:48:36

0

@oratis中有你的AppDelegate @synthesize窗口= _window檢查;這可能是無法識別選擇器的原因

相關問題