开发者

How to stop a UILabel scrolling?

开发者 https://www.devze.com 2023-03-23 08:06 出处:网络
I have several UILabels. I setup a UIScrollView within a app that works fine. The problem that I\'m having is I want some UILabels to scroll and some to rem开发者_如何学编程ain frozen. I don\'t think

I have several UILabels. I setup a UIScrollView within a app that works fine. The problem that I'm having is I want some UILabels to scroll and some to rem开发者_如何学编程ain frozen. I don't think this is a coding problem as much as a interface builder issue.


If you mean you want the labels to be fixed on top of the scrollview, then simply drag them out in interface builder so they're at the same level in the hierarchy and not inside of the scrollview.

How to stop a UILabel scrolling?


You can simply add the UILabel as subView of scrollView which you want to scroll. And add the UILabel as subView of self.view which you dont want to scroll.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号