IPad xib to iPhone

IPad xib to iPhone,第1张

概述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所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1088681.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存