如何停止UILabel滚动? [英] How to stop a UILabel scrolling?

查看:121
本文介绍了如何停止UILabel滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个UILabels。我在一个工作正常的应用程序中设置了一个UIScrollView。我遇到的问题是我想要一些UILabel滚动而一些要保持冻结状态。我不认为这是一个编码问题,就像接口生成器问题一样。

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 remain frozen. I don't think this is a coding problem as much as a interface builder issue.

推荐答案

您只需将 UILabel 添加为 scrollView 。并将 UILabel 添加为您不想滚动的 self.view 子视图

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.

这篇关于如何停止UILabel滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆