简体   繁体   English

将大小类添加到现有Xcode项目

[英]Adding size classes to an existing Xcode project

I have an universal application with deployment target 6.1 and above. 我有一个部署目标6.1及以上的通用应用程序。 The application is already in app store. 该应用程序已在应用商店中。 Now I need to make changes as per new requirements and also update it for iOS 8.1. 现在我需要根据新要求进行更改,并为iOS 8.1更新它。 I have two storyboards with auto-layout as "Main_iPhone" and "Main_iPad". 我有两个故事板,自动布局为“Main_iPhone”和“Main_iPad”。

Question: I want to implement size classes now. 问题:我现在要实现大小类。 What are the necessary changes I need to make inside the application or project settings ? 我需要在应用程序或项目设置中进行哪些必要的更改?

Can I just delete those two storyboards and create a new one and re-design everything or any other better feasible ways are there ? 我可以删除这两个故事板并创建一个新故事板并重新设计一切或任何其他更可行的方法吗?

Note: A detailed bullet steps for necessary changes will be very helpful. 注意:必要更改的详细子弹步骤将非常有用。 I know auto-layout(Intermediate level). 我知道自动布局(中级)。 Beginner in case of "Size classes". 初学者,如果是“大小班级”。

Thanks in advance. 提前致谢。 Happy coding. 快乐的编码。

There'a no need to delete your storyboards. 没有必要删除你的故事板。 From the project navigator select the storyboard then in the file inspector in Interface Builder Document section, check "Use Size Classes". 从项目导航器中选择storyboard,然后在Interface Builder Document部分的文件检查器中,选中“Use Size Classes”。 Note that the project won't be compatible with Xcode 5 after using Size Classes 请注意,使用大小类后,项目将与Xcode 5不兼容

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

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