开发者

Issue with UIViewController in iPad Universal App

I recently upgraded my iPhone app to a universal binary. I have 2 view controllers and nibs, one for the iPhone and one iPad. I scaled up the iPad UI and created the exact same connections in IB.

However, I get this error:

-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "HomeScreen_iPad" nib but the view outlet was not set.'

I can say 开发者_如何学编程for a fact that the view outlet is indeed set. I have gone through every connection and init method. I cannot figure out why the iPhone version loads and it won't on iPad.

I am using the simulator and if I don't get this error in the debugger, I get a white screen. Changing any color properties of UIWindow has no effect.

If anyone can help, it is greatly appreciated.


Check your Info.plist file. Have you added an entry for "Initial NIB (iPad)"?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜