[英]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. 今天我花了几个小时但仍然没有答案很简单(我认为应该是这样)问题:如何在iOS7中使用自动布局功能进行任何可滚动的操作。 I added ScrollView into the View (I'm using Storyboard).
我将ScrollView添加到View中(我正在使用Storyboard)。 Then I added multiline Label to this ScrollView.
然后我在这个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: 如果在ScrollView和Label之间添加约束,ScrollView的内容大小将自动调整,文本将滚动:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.