ios - TextField overlaid on ScrollView "Adjust to Fit" TextField not working -


i have scroll view overlaid 2 text fields, 1 near top , 1 near bottom. when text in text field reaches side constraints app freezes , not adjust size fit width. initially, had image view overlaid 2 text fields , working properly. think has relation scroll view.

in interface builder, adjust fit checked , min font size set. have used following statements , no avail.

    toptextfield.adjustsfontsizetofitwidth = true     bottomtextfield.adjustsfontsizetofitwidth = true 

below screen shot of app when freezes , screen shot of layout in xcode.

enter image description here

enter image description here

looks todo auto layout constraints. double check constraints scrollview .follow tutorial explained step step how handle constraints scrollview.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -