Converting iPhone xib to iPad xib?

后端 未结 17 2857
一向
一向 2020-11-27 09:31

How do you do it? I saw one video tutorial on it, but the screen was too small. Also, other than changing the view size, are there any other major changes I would have to

17条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 09:52

    Jag's answer is great. But there is a catch if an XIB is opened/ created in Xcode 5.

    For Xcode 5

    1) Make a copy of the iPhone xib file and add it to your project

    2) Right click the file (in xcode) and Open As > Source Code

    3) The 2nd line should look like:

    change it to

    4) 8th line should look like this:

    
    

    change it to

    
    

    That's it and there you have iPad XIB. But still the real credit goes to Jag.

提交回复
热议问题