Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ScrollView not working in iOS7 with AutoLayout

Tags:

ios

ios7

Today I've spend a few hours but still have no answer on very simple (I think it should be so) question: how to make anything scrollable in iOS7 with auto layout feature on. I added ScrollView into the View (I'm using Storyboard). Then I added multiline Label to this ScrollView. Then I tried all that I could found in Internet but with no luck. Text not scrolling. It's killing me, guys :(((. Help me please maybe with some simple code snippet.

Thank you!

like image 230
Dmitry Sikorsky Avatar asked Oct 06 '13 19:10

Dmitry Sikorsky


1 Answers

If you add constraints between ScrollView and Label, ScrollView's content size will adjust automatically and text will scroll:

enter image description here

like image 99
Alexey Kozhevnikov Avatar answered Oct 16 '22 14:10

Alexey Kozhevnikov