Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I've tried XCode 8 GM seed and I've found out a serious issue in the Storyboard, either you use Auto Layout or disable it, Xcode 8 messes up with a UIView included into a UIScrollView, as shown here:

enter image description here

enter image description here

The wired thing is that if I resize that embedded UIView into the ScrollView, quit Xcode and open my project again, that UIView gets bigger again, with no sense, all the times.

Have you encountered the same issue?

Do you think Apple fix this big bug with the Official release of XCode 8?

Thanks!

UPDATE Unfortunately even the official version of Xcode 8 has the same issue :(

share|improve this question
1  
I have same issue, You need ajust and resize all views... 375points width for iPhone 6. – Josep Escobar Sep 8 at 18:19
    
i've made it by code, in a simpler way, by declaring my UIView as an IBOutlet and placing myView.frame = view.frame into viewDidLoad(), and that makes my app working fine on all devices... but the Storyboard still gets messed up and that's not good at all, because when i open the Xcode project again all my views are moved and resized, so if I have to update something manually in the Storyboard it's just a mess :( anyway I shouldn't even do that, everything works perfectly on Xcode 7.3 – fvimagination Sep 8 at 18:27
    
btw, do you mean that I should keep the controllers in the Storyboard as iPhone 6 instead of iPhone 4s? – fvimagination Sep 8 at 18:29
1  
I encountered the same issue with Xcode 8 GM. I really hope they fix this issue by the time they do the final, final release. At first, I thought it was an issue with Xcode 8 migrating over from Xcode 7 but then after some testing, I notice that wasn't the case. I created a new Storyboard with Xcode 8 and after reopening with Xcode 8, I was getting the same issues you just described. I submitted a DTS and two bugs. You should do the same to get more attention to this issue with Xcode 8. At least a bug. Will let you know if I get a response from Apple this week. – Mario A Guzman Sep 12 at 5:12
2  
we already filed a bug report to apple, hopefully they'll keep it in consideration since this is not a minor bug. – fvimagination Sep 12 at 5:19

if you are using Auto Layout then, Please Select one by one UIViewController Scene in Main Storyboard. Click Update Frame, it will automatically adjust all frames of a selected view controller.

enter image description here

share|improve this answer
1  
can't get it, I've selected all view controllers, but Update Frames is disabled, I'v selected one viewController, still disabled. How do i selected the whole scene you mentioned? – fvimagination Sep 14 at 19:51
    
@fvimagination see updated one in my answer. select individual view controller scene one by one not whole main storyboard. it will work – Imran Sep 15 at 4:17
    
Ok, I've got it, I had to check "Use Auto Layout", then add all constraints and adjust them as I wish. thanks! – fvimagination Sep 15 at 6:03
    
@fvimagination welcome dude – Imran Sep 15 at 6:07
    
@Imran We have to forcefully use AutoLayout? See My que stackoverflow.com/q/39526156/3463712 – Max Sep 17 at 5:41

The only workaround I've found for this is to make the view controllers size "fixed" using the Size Inspector.

share|improve this answer
    
Our controllers have Simulated Size: Fixed, same result, even on the official version of Xcode :( – fvimagination Sep 14 at 19:52

It's a bug from Apple that we cannot fix, unless we use Auto Layout, but we can't and also do not have to, Xcode has always worked like a charm on Storyboard and NO Auto Layout even since its 5 version.

We filed a bug report to Apple, and probably many other developers did the same in the past few weeks, so we're just hoping that Apple will fix it on a next Xcode 8 release.

share|improve this answer
    
why u unaccepted my answer, it was u who accepted, bcoz it worked for u as well others, it s not under policy of stackoverflow – Imran Oct 12 at 17:06
    
because that doesn't fix the bug on xcode 8, it's still there for who doesn't want to use Autolayout, Apple must fix it, we can't – fvimagination Oct 12 at 17:23

You can change Simulated size of view controller from size inspector. Go to size inspector and change simulated size to Free form. You can set width and height of view as you like. To view the screen as it was in iOS 9, change width and height to 600. enter image description here

share|improve this answer
    
ok, but that's not a proper answer, the bug is still there, when you reopen the project you see that the view inside the scrollview gets bigger, it doesn't keep the width/height values you put in there – fvimagination Oct 7 at 11:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.