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:
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
Replace with:
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="7.10">
4) Search for "IBCocoaTouchFramework" and Replace all occurrences with "IBIPadFramework"
5) Save the file and Open As > Interface Builder - iOS
The file might still look like a regular iPhone xib, but for me, once I changed the Status Bar to "Black" in the Attributes inspector the rest of the xib just kind of "snapped" into an iPad xib
不翻译了,相信你懂得 :)
本文提供了一种将iPhone的XIB文件转换为适用于iPad的方法。步骤包括复制并添加XIB文件到项目中,修改文件类型及框架引用等。通过调整属性检查器中的状态栏颜色,可以触发XIB文件在Interface Builder中的正确显示。
1478

被折叠的 条评论
为什么被折叠?



