在网易公开课的ios7应用开发的时候,创建通用项目会出现两个故事版,一个是iphone的一个是ipad的,而现在xcode创建通用项目的时候只有一个故事版,那我怎么样在一个故事版上开发两种视图呢?举个例子,在iphone上用tableview,而ipad上用splitview,该怎么实现呢?
巴扎黑2017-04-17 17:49:01
You can use SizeClass for adaptation
Different layouts in different SizeClass
PHP中文网2017-04-17 17:49:01
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.