I didn't check the Targeted for iPad option when creating a View Controller. How can I fix my UIView to be targeted for iPad devices using XCode 4.2?

后端 未结 2 858
借酒劲吻你
借酒劲吻你 2020-12-19 16:09

I made a mistake when I created one of my UIViewController objects. When I created the files, I forgot to select the Target for iPad option.

<

2条回答
  •  梦毁少年i
    2020-12-19 16:38

    Try this at your own risk:

    First, back-up your original Xib file. Next, modify the second line from:

    to

    Next, open the source code of the xib, and in every ocurrence of the element:

    
    

    Replace the value IBCocoaTouchFramework with IBIPadFramework.

    Good luck!

提交回复
热议问题