简体   繁体   English

iPhone 3GS iOS 5支持(笔尖到故事板)

[英]iPhone 3GS iOS 5 support (nibs to storyboards)

I have an iOS project that supports iPhone 3GS and on and requires iOS 5 or later. 我有一个支持iPhone 3GS及更高版本的iOS项目,并且需要iOS 5或更高版本。 This project is using nibs instead of storyboards and is using ivars and properties the "old" way (ie declaring ivars and the appropriate properties). 该项目使用笔尖而不是情节提要,并且以“旧”方式使用ivars和属性(即声明ivars和适当的属性)。

I would like to work hard and convert this project to a "new" way, ie to storyboards and clean up the redundant ivars and the synthesise things). 我想努力工作,并将这个项目转换为“新”方式,即转换为故事板,并清理多余的ivars和综合内容。 It does use ARC, though. 它确实使用ARC。

My question is first: will I still be able to support iPhone 3GS? 首先,我的问题是:我仍然可以支持iPhone 3GS吗? And second, is there any convenient way to transform this project to the new-fashioned way besides just manually copying the nibs to storyboards and managing all the IBOutlets and IBActions and so on? 其次,除了手动将笔尖复制到情节提要板并管理所有IBOutlet和IBAction等之外,还有什么简便的方法可以将该项目转换为新方法?

Thanks! 谢谢!

will I still be able to support iPhone 3GS? 我还能支持iPhone 3GS吗? NO 没有

Apple doc clearly says 苹果医生明确表示

Storyboards are supported in iOS 5 and later and are enabled by default for new projects. 故事板在iOS 5和更高版本中受支持,并且默认情况下为新项目启用。 If your app must run on earlier versions of iOS, though, you cannot use storyboards and should continue to use nib files 但是,如果您的应用必须在iOS的早期版本上运行,则不能使用情节提要,而应继续使用nib文件

Is there any convenient way to transform? 有没有方便的转换方式?

There is no shortcut(single step)to convert an existing application to use storyboards. 没有将现有应用程序转换为使用故事板的快捷方式(单个步骤)。
Converting to Storyboards 转换为情节提要

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM