Thursday, October 23, 2014

change the size of storyboard viewcontroller to match ipad or iphone screen size

By default, the xcode will create viewcontroller in storyboard as a square, and then use constraints to adjust the actual size and control location based on actual device size. However, it may be better to show the actual iphone or ipad size when designing the screen layout.

To resize the storyboard to iphone or ipad screen size, select the storyboard item in project navigator,  then in the property file inspector, uncheck the "Use Auto Layout" and "Use Size Class", when prompting for the screen size, choose iphone or ipad

In addition, the size of view in the viewcontroller in storyboard is readonly, to adjust the view's size, select the viewcontroller item in storyboard, then in viewcontroller's size inspect, change the simulated size from fixed to FreeForm.  Then the view's size will be adjustable.

2 comments:

  1. I want to always read your blogs. I love them Are you also searching for nursing research paper help? we are the best solution for you. We are best known for delivering Nursing research paper writing services to students without having to break the bank

    ReplyDelete
  2. Good blog. Keep sharing. I love them Are you also searching for ajman assignment help? we are the best solution for you. We are best known for delivering writing services to students without having to break the bank

    ReplyDelete