Trouble with loading a separate XIB for iPad or iPhone

后端 未结 3 1023
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 03:37

Im having trouble figuring out how to load a separate XIB for iPad or for iPhone in a Universal app.

Its easy enough to convert the Xcode project to Universal and ha

3条回答
  •  不知归路
    2020-12-10 03:49

    I know that @indragie's answer is a very common one, but it's a common misunderstanding that will cause you a lot more work than you actually need to do.

    As long as you name the xib files a certain way, they will be automatically selected for either iPhone or iPad. Check out my answer to this same problem on another post:

    iOS: Using device modifiers for loading xib files?

提交回复
热议问题