如何禁用按钮的用户交互

发布于 2024-09-07 03:24:16 字数 85 浏览 0 评论 0原文

我的视图中有一个播放按钮,如果我按播放,它就会更新流并开始播放.. 在我播放歌曲之前,我不想在播放按钮上进行任何用户交互。 谁能帮我解决这个问题......

i have a play button in my view,if i press play its gets updated the stream and started playing..
until i get play song i dont want to take any user interactions on play button..
can any ony help me on this.....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

揽月 2024-09-14 03:24:16
button.userInteractionEnabled = NO;
button.userInteractionEnabled = NO;
笑忘罢 2024-09-14 03:24:16

您还可以将“Enabled”属性设置为“NO”,或者如果您想要动画,请淡出 Alpha。

You could also set the "Enabled" property to "NO" or if you want animation, fade the alpha out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文