1

in my app, I would apply Scrollview which there are textfields and labels.

but I was very confused, because some textfield can not be shown on the scroll view and the textfield "country" and further textfield not selectable. scrol bar on scrolview Nor can slide all the way down, only half of the frame content view. how so I can scroll through the entire content and can use existing textfield?

Image

Khairul R
  • 25
  • 1
  • 6

1 Answers1

1

If you have multiple subviews, you need to update the scroll view content size

I you use autolayout, you can follow this tutorial.

Community
  • 1
  • 1
AlexB
  • 3,518
  • 4
  • 29
  • 46
  • no but here is a tutorial for autolayout http://www.natashatherobot.com/ios-autolayout-scrollview/ – AlexB Jan 04 '16 at 07:22
  • thanks that's work, but i don't understand when i use scroll layout on the constraint storyboard of scrollview must "AG" if not, the scrollview always doesn't work – Khairul R Jan 04 '16 at 07:38
  • i follow that tutorial, first time that work, but when i adding some textfield on the bottom screen the scroll doesn't work – Khairul R Jan 04 '16 at 07:42