xcode 将故事板转换为 XIB

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8920233/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:02:06  来源:igfitidea点击:

Convert Storyboard to XIB

iosobjective-cxcodestoryboardxib

提问by jadengeller

I created an app using the iOS 5 Storyboard feature, and have decided I would like it to also run on iOS 4. How can I convert my Storyboard (Which only contains one ViewController) into an XIB? Also, will ARC compile for iOS 4?

我使用 iOS 5 Storyboard 功能创建了一个应用程序,并决定我希望它也能在 iOS 4 上运行。如何将我的 Storyboard(仅包含一个 ViewController)转换为 XIB?另外,ARC 会为 iOS 4 编译吗?

回答by madmik3

I don't think there is an automatic way to go from storyboard to xib. i think you will need to make the nibs and copy paste.

我不认为有一种从故事板到 xib 的自动方式。我想你需要制作笔尖并复制粘贴。

ARC will run on iOS 4. The compiler inserts the necessary extra code to free memory for you. ARC works from 4.0 on.

ARC 将在 iOS 4 上运行。编译器会插入必要的额外代码来为您释放内存。ARC 从 4.0 开始工作。