UIScrollView's origin changes after popping back to the UIViewController

后端 未结 17 2371
不知归路
不知归路 2020-12-07 16:50

I have a UIViewController subclass as a scene in the storyboard that contains a UIScrollView containing various subviews. One of the subviews is a

17条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 17:03

    Unfortunately, Peter and MacMark's suggestions did not work for me (Xcode 5 w/ auto-layout). The solution was to go to the storyboard, select the view controller, and Reset to Suggested Constraints in View Controller.

    enter image description here

提交回复
热议问题