向现有的Xcode项目添加size类

时间:2023-01-24 07:35:15

I have an universal application with deployment target 6.1 and above. 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. I have two storyboards with auto-layout as "Main_iPhone" and "Main_iPad".

我有一个通用应用程序,部署目标为6.1或更高。应用程序已经在app store中。现在我需要根据新的需求进行修改,并更新iOS 8.1。我有两个自动布局的故事板,分别是“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 ?

问题:我现在想要实现size类。我需要在应用程序或项目设置中进行哪些必要的更改?

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.

提前谢谢。快乐的编码。

1 个解决方案

#1


0  

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". Note that the project won't be compatible with Xcode 5 after using Size Classes

没有必要删除故事板。在project navigator中选择storyboard,然后在Interface Builder文档部分的file inspector中,检查“使用Size类”。注意,在使用Size类之后,该项目将不能与Xcode 5兼容

#1


0  

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". Note that the project won't be compatible with Xcode 5 after using Size Classes

没有必要删除故事板。在project navigator中选择storyboard,然后在Interface Builder文档部分的file inspector中,检查“使用Size类”。注意,在使用Size类之后,该项目将不能与Xcode 5兼容