2014-09-02 58 views
0

當我嘗試在iphone5上運行時,我的項目出現這樣的錯誤。iPhone5上的故事板錯誤,在iPhone5上工作

terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 
'Storyboard (<UIStoryboard: 0x7ffe90414500>) doesn't contain a view controller with 
identifier 'galleryPageViewController'' 

什麼可能是錯誤的,哪些屬性可能與iPhone5s不兼容?

+0

錯誤它自己說,不能罰款galleryPageViewcontroller的標識符。檢查正確的故事波德是否有正確的標識符 – 2014-09-02 11:45:17

+0

是不是設備問題在這裏標識符「galleryPageViewController」是問題檢查標識符是否正確 – 2014-09-02 11:47:22

+0

@NitinGohel如果故事板上沒有適當的標識符,它也不應該在iPhone5上工作,但它確實與 – erdemgc 2014-09-02 11:47:52

回答

0

我以

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" withBundle:[NSBundle mainBundle]]; 

[storyboard [email protected]"MyViewController"]; 

固定的問題,它是以前

[self.storyboard [email protected]"MyViewController"]; 

某種程度上它混淆了有關故事板,現在它的工作原理。