iOS storyboard疑问
巴扎黑
巴扎黑 2017-04-17 17:47:01
0
2
276

在网易公开课的ios7应用开发的时候,创建通用项目会出现两个故事版,一个是iphone的一个是ipad的,而现在xcode创建通用项目的时候只有一个故事版,那我怎么样在一个故事版上开发两种视图呢?举个例子,在iphone上用tableview,而ipad上用splitview,该怎么实现呢?

巴扎黑
巴扎黑

reply all(2)
巴扎黑

You can use SizeClass for adaptation
Different layouts in different SizeClass

Ty80

After iOS8, UISplitViewController can be used on both iPad and iPhone. So for the example in the open class, you only need to use a storyboard.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template