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:
"com.apple.InterfaceBuilder3.Cocoatouch.iPad.XIB" 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
不翻译了,相信你懂得 :)
总结以上是内存溢出为你收集整理的如何将xib文件再ipad和iphone之间互相转换全部内容,希望文章能够帮你解决如何将xib文件再ipad和iphone之间互相转换所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)