Is there someone having issues with UIScrollView and Constraints since iOS 10?

ramonesteban78ramonesteban78 ESUniversity ✭✭

Hi all,

I have a problem with Autolayouts and Constraints in iOS 10 and simulators. Note that this is working fine deploying to device.

The way I do UIScrollViews is placing inside a UIView container with top, bottom, left and right constraints.
Then I place all my controls inside of this view container.

The problem is that as soon as I put some constraints in the view container, it disappears when I execute the app in simulator (all of them with iOS 10). Also I have notice that the ContentSize of my UIScrollView is 0 Width and 0 Height.

Even putting the ContentSize of my scrollview programatically doesn't solve the issue.

The only way I have found to make them work is removing the constraints of my UIView container, and calculate its size programatically.

Is there someone having the same issue? Is this a known issue pending to be solved?

Regards

Tagged:

Best Answer

Answers

Sign In or Register to comment.