Vishnu
Vishnu

Reputation: 208

Strange behaviour when updated to Xcode 8

enter image description here

The above contents are placed in a scrollview but the output in the app is as below enter image description here

If i place these contents outside the scrollview it is working fine, it was working fine before update to xcode 8

Upvotes: 6

Views: 249

Answers (2)

Rahul Mayani
Rahul Mayani

Reputation: 3831

Don't change anything layout (Autoresizing/Autolayout). I think the issue is scrollview content size. So, you update the view frame in viewDidLoad method. And after then update scrollview content size.

- (void)viewDidLoad {

    [super viewDidLoad];
    //set view frame
    self.view.frame = [UIScreen mainScreen].bounds;
}

Upvotes: 0

Ragul
Ragul

Reputation: 3196

Try adding these constraints for UIScrollView enter image description here

Upvotes: 1

Related Questions