Converting iPhone xib to iPad xib?

后端 未结 17 2907
一向
一向 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

    Open up the XIB in XCode 4 using "view as source code."

    Before

    Back up the nib in question.

    One

    Substitute this goo

        IBCocoaTouchFramework
        
            com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
            
        
        
            com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
            
        
        YES
        3
        301
    

    for this other goo

        IBIPadFramework
        
            com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
            
        
        YES
        3
        301
    

    Two

    Then, for each view in the nib using the integrated IB, delete it and then hit undo.

    Three

    Then shower in hot water to wipe off that disgusting feeling you might have.

提交回复
热议问题