Strange behavior when upgrading to Xcode 8

enter image description here

The above content is put into scrollview, but the result is in the app below enter image description here

If I post this content outside of scrollview, it works fine, it works fine before upgrading to xcode 8

+6
source share
2 answers

Try adding these restrictions to UIScrollView. enter image description here

+1
source

Do not change anything layout (Auto Resist / Autostart) . I think the problem is the size of the scroll content. Thus, you update the view frame in the viewDidLoad method. And after that, refresh the size of the scroll content.

 - (void)viewDidLoad { [super viewDidLoad]; //set view frame self.view.frame = [UIScreen mainScreen].bounds; } 
0
source

All Articles