开发者

Make an iPad app Universal?

I've seen lot's of questions asking how to convert iPhone apps into Universal apps, and the answer has usually been to use the Upgrade Target For iPad and sometimes update the Info.plist. I've also seen this question, which asks the same thing as me, but I'm looking for a different approach.

The answer posted there says that in order to convert an iPad app to a universal app, one must just change the Target device family and then code for it. I think that answer is incorrect, because you end up with a lopsided codebase.

How would I convert an iPad app to a universal app, so that the directory structure would look like an iPhone app that was开发者_JAVA百科 upgraded? (Including steps such as editing the plist and splitting the delegate.)


If you want to do it manually, first create a dummy/template Universal app, look at the differences between it and your app, and change your app to eliminate those differences. Among the steps:

Create iPad subdirectories.

Create suitable xibs for the iPad in that subdirectory.

Modify your info.plist to use those xibs for iPads (and icons, etc.)

Either create new subclasses for the iPad, or use modify your existing subclasses to check the UI paradigm and select the appropriate UI subelements & sizes in code.

If you created new classes, plug them into the iPad xibs as needed.

Modify your Target settings to include building for iPad.

Move around, and/or rename your existing iPhone files/directories to make them symmetric, if so desired.


This blog post is mentioned in one of the answers to the question that you referenced, but if you haven't read it already, it may be helpful:

http://iphonedevelopment.blogspot.com/2010/04/converting-iphone-apps-to-universal.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜