如何在xcode4中将iPhone应用程序转换为通用,如果我之前已转换,但删除了MainWindow-iPad? [英] How to convert iPhone app to universal in xcode4, if I previously converted, but deleted MainWindow-iPad?
问题描述
我有iPhone应用程序,我将它在xcode4转换为通用应用程序,它工作正常,但之后我删除了MainWindow-iPad并仅返回iPhone应用程序。现在我需要让我的应用程序再次通用,我点击Xcode4设备 - 通用,但XCode不创建MainWindow-iPad并且不要求我过渡到通用目标所以当我建立和运行时iPad模拟器应用程序崩溃。我怎样才能解决这个问题?谢谢。
I have iPhone app and I converted it in xcode4 to universal app, and it worked fine, but after that I deleted MainWindow-iPad and return to iPhone app only. Now I need to make my app universal again, I clicked in Xcode4 "Devices-Universal", but XCode don't create MainWindow-iPad and don't ask me "Transition to universal target" so when I'm building and running in iPad simulator app crashes. How can I fix this? Thank you.
推荐答案
创建您自己的mainwindow-ipad nib文件并将其设置为您的信息中iPad平台的主nib文件.plist
Create your own mainwindow-ipad nib file and set it as main nib file for the iPad platform in your info.plist
这篇关于如何在xcode4中将iPhone应用程序转换为通用,如果我之前已转换,但删除了MainWindow-iPad?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!