简体   繁体   中英

ScrollView not working in iOS7 with AutoLayout

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!

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

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM