UIScrollView not scrolling with UItextfields

前端 未结 4 1431
滥情空心
滥情空心 2021-01-23 23:33

I am making a normal view where users can update their profiles. I followed these steps to make that view

  1. Created a new UIViewController
4条回答
  •  野的像风
    2021-01-23 23:38

    You need to add an extra parent View for all the textfield in ScrollView.

    Note:

    • Give constraints to UIView w.r.t. UIScrollView as Leading, Trailing, Top, Bottom and Equal Widths.

    • Also don't forget to add the bottom constraint for last object in UIView w.r.t. UIView (Customize it to approx. 30 since it will not scroll much after finishing the contents).

    • Customize the constraint of UIView bottom w.r.t UIScrollView to 0.

    See:

提交回复
热议问题