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
不翻译了,相信你懂得 :)
分享到:
相关推荐
nib2objc是一个小巧的转换工具,可以将XIB文件自动转换为Objective-C的源代码文件。 通常,考虑到程序的效率时,才将XIB直接转换为源代码文件。但是这样一来,通过Interface Builder设定的实例变量与行为方法的接续...
现在,我们可以批量处理iphone XIB 为 IPAD XIB 文件,大大提高开发效率。 提示: 1. 先在模拟器上运行代码一次。 2. 找到模拟器上该程序对应的Documents目录,将要转的iphone的XIB文件放在该目录。 3. 再次...
xib2Storyboard - 将Xcode .xib转换为.storyboard文件的工具
动态加载XIB文件,可以结合我的博文看看,这只是一个很小的DEMO 参考博文:http://blog.csdn.net/davidsph/article/details/7999652
view中添加xib文件, 详细的代码, 已经写了博客,可以结合博客一起看
Xcode6.1创建仅xib文件无storyboard的hello world应用
代码展示了StoryBoard与xib文件的互相调用以及storyboard直接的互相调用
iOS XIB创建View
iOS开发过程中对xib文件的转换工具:支持TableViewCell、CollectionViewCell、View 互相转换。
ios app实现xib之间的跳转,ios app实现xib之间的跳转。
iPhone开发使用Xib自定义UITableViewCell
xib转换成objective-c的方法,方便进行快速的view转换
作者zhanghuanProgrammer,源码ZH,1.Storyboard和Xib文件生成纯手写代码, 2.快速创建带tableView,collectionView的MVC编程文件, 3.json转model,不需要你多写一句代码, 4.帮你自动拉约束outlet,再也不用烦了, 5.将非...
ios开发 使用 Xib文件定制表格行.zip
LocalizedView - 一个帮助类,用于在Xib文件中设置特定于应用程序的本地化字符串
xib2Storyboard•xib2Storyboard是一个方便的工具,可以轻松地将.xib文件转换为.storyboard,而无需麻烦地手动复制视图,从而避免了麻烦,并且可能会限制流程。 维护所有出口,xib2Storyboard•xib2Storyboard是一个...
自定义AlretView,使用xib文件定义一个可扩展、高复用的UIView子类可行性的方法
使用XIB实现嵌套自定义视图 xib上边在添加个xib 使用约束 自动布局 StoryBoard上添加xib 文件 使用约束 自动布局
Storyboard和XIB简单的混合使用
ios 5.1 只用代码不用xib写的helloworld iphone