简体   繁体   中英

From iPhone to Universal App issue

I have an application exclusively made for iPhones only. Then I wanted to turn that app into a universal application. I tried changing its deployment target, its plist, created a view for iPad (typical way of upgrading into a universal app). Now the problem here is this, when i ran my app in iPad, it produces an error.

This class is not key value coding-compliant for the key view.

Can somebody help me how to run my app in iPad?

This is because you didnt connect iPad's view in the IB. So make sure that your iPad view's file owner's class is your class not NSObject and connect the view from connection panel

在此处输入图片说明

If Copy Bundle Resources doesnt contain your xib file, then also this error will occur.

Another possibility is make sure your project's 'Main Interface' is blank

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM