概述1 Thisworked for me: Makea copy of the .xib in the Finder. Openthe copied file in a text editor. Change"com.apple.InterfaceBuilder3.CocoaTouch.XIB" to"com.apple.InterfaceBuilder3.CocoaTouc
1
Thisworked for me:
Makea copy of the .xib in the Finder.
Openthe copIEd file in a text editor.
Change"com.apple.InterfaceBuilder3.Cocoatouch.XIB" to"com.apple.InterfaceBuilder3.Cocoatouch.iPad.XIB".
Changeall instances of "IBCocoatouchFramework" to"IBIPadFramework".
Searchfor sizes like {480,320} and edit them. Or just reopen the file inXcode and use the GUI to resize items as needed.
Thisalso works in reverse,if you need to change an iPad xib into aniPhone xib.
2
Selectthe target (in XCODE4 it's shown when you select the project). Onceselected use the contextual menu to "Duplicate" it. It will ask youwant to "Duplicate and Transition to iPad". Then all the XIBS willbe duplicated with the new iPad size. 总结
以上是内存溢出为你收集整理的IPad xib to iPhone全部内容,希望文章能够帮你解决IPad xib to iPhone所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)