You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my view controllers has a UILabel which is horizontally centered and has a fixed constrained from the top of the view controller:
When running the app and swiping to said view controller the UILabel will somehow rerender, i.e. the UILabel is initially show much closer to the top and then jumps into the right place. This only happens on the first view, afterwards it is always in the right position.
Oddly this only happens when a view is tied to the top, when I add another UILabel that has only constrains to the bottom or to the sides everything works as it should. Same for elements that are horizontally or vertically centered or collection views that span the whole view.
Any ideas what could be causing this or how to fix it? The closest I could find was described in this SO post
I'm using XCode9.
The text was updated successfully, but these errors were encountered:
petard
changed the title
View being unintentionally resized when scrolling
View being unintentionally resized when appearing
Sep 21, 2017
One of my view controllers has a UILabel which is horizontally centered and has a fixed constrained from the top of the view controller:
When running the app and swiping to said view controller the UILabel will somehow rerender, i.e. the UILabel is initially show much closer to the top and then jumps into the right place. This only happens on the first view, afterwards it is always in the right position.
Oddly this only happens when a view is tied to the top, when I add another UILabel that has only constrains to the bottom or to the sides everything works as it should. Same for elements that are horizontally or vertically centered or collection views that span the whole view.
Any ideas what could be causing this or how to fix it? The closest I could find was described in this SO post
I'm using XCode9.
The text was updated successfully, but these errors were encountered: