Do we need to use 2 Storyboard for a Universal app?

前端 未结 6 1745
星月不相逢
星月不相逢 2021-02-06 12:01

I have a project for iPhone and iPad. The iPad needs a split view controller. Do we create two separate storyboards? One for iPhone (using autolayout we can support all devices)

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 13:07

    Even with adaptive UI, personally I prefer to work on different storyboard. For complex layout it is easier this way and it will not easily break the layout for other screen size. Having too many constrain can make harder to maintain. Also moving the object hierarchy will break the layout for other screen.

    As bonus, if you work with low level mac like mackbook air or old mac, it also reduce the load time and get better responsiveness when you work with storyboard.

提交回复
热议问题