Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoresizing under iOS 10 doesn't work

I had a app that works without AutoLayout and Constraints. I only set the autoresizing in the size inspector. Under iOS 9 and earlier works all fine. Under iOS 10 the autoresizing doesn't work and set the size out of the screen. Look at the following picture : Under iOS 10 in the simulator

![1]

The same is happened on a iPhone 5 and iPhone 6 Plus. What can I do, that the autoresizing works fine.

Edit 1: Another workaround is to set the storyboard to Xcode 7.x version. You can do this in the File Inspector under Interface Builder Document. To set the option Opens in to the value Xcode 7.x. Answer the following question with save and close. If you now run the project on your iPad or iPhone all view controller with UIScrollView works fine with the auto resizing.

Important: This workaround to perform after each change in the storyboard.

Edit 2: I had make a cross post in the apple developer forum, look here : https://forums.developer.apple.com/message/182716#182716

like image 435
Rolf Warnecke Avatar asked Dec 24 '22 01:12

Rolf Warnecke


1 Answers

This is a bug in Xcode 8,Just use 7.x version to build your app ,then it will show normally.

like image 171
I'm Chinese Avatar answered Jan 07 '23 06:01

I'm Chinese