Reputation: 7922
I have an iPad app designed using storyboard, the MasterViewController simulated metrics are as follows:
and the view size as it appears in the size inspector is as follows:
when I NSLogged
the view's frame in viewWillAppear
method of the MasterViewController (named here HomeViewController), the result was: {{0, 0}, {320, 1004}}
that means the actual height of the master view is 1004 pixels and not 832 pixels.
why does Simulated Metrics in Xcode gives me incorrect master view height ?
-Notes before you answer the question:
Upvotes: 0
Views: 271
Reputation: 5174
I know this is an old question, but it came up when I was trying to search for the proper size of a 'master' view, so... What the heck.
At a guess, this is related to the fact that both detail and master view have different sizes / shapes depending on orientation. You'd think that apple would give the master view a width such that when you move into portrait orientation, the detail view's width is unchanged, but experience suggests otherwise.
Upvotes: 1