Reputation: 1183
I have a little problem that's driving me crazy. I just started creating a storyboard for a very simple application and running it I can't understand why the storyboard appereance inside Xcode is completely different by the running look.
I suppose that this two images below can explain my issue better than words.
This is the Xcode appearance and what I would like to see on my iPhone screen. All the controller are configured, by default, to infer the size of the parent controller.
This is the running look and it not I supposed to see on the screen. It's seems like the view of TEST view controller does not infer the size of the tabBarController available size, instead it match the size of the main container view.
Any suggest how to solve this issue, is it maybe a Xcode bug? I'm running the latest Xcode 4.5.2
Thank you in advance.
EDIT
I'm pretty sure that this behaviour is caused by the new constrains mechanism introduced by Apple on the iOS 6.0 SDK. Finally I found an option for the storyboard file that is "Use Autolayout". Disabling this flag the app visualisation between Xcode and Simulator is now congruent. To be more precise I think that the bug is caused by a miss constraint between the controller view and the UITabBar.
I'm going to notify Apple about this crazy behaviour using his bug report service.
Upvotes: 2
Views: 552
Reputation: 7343
I would recommend to use the tabbar as the storyboard's initial view controller on an iPhone device. Do not add it as childViewController. Then add the iAd to a SuperViewController, which would be superclass of the tabbar's view controllers. Hope this helps!
Upvotes: 1