Search code examples
iosswiftuikit

How to use same storyboard with proper view in both iPhone and iPad?


I want to create a app for both iPhone and iPad. Is there any easy way for that so i don't need to create two different storyboard for iPhone and iPad? How can i change whole app font size and view height and width automatically when app run in iPad and iPhone.


Solution

  • You should look for Size Classes. They are the more recommended way to do that :) Take a look at this article https://www.bignerdranch.com/blog/designing-for-size-classes-in-ios/