gpt4 book ai didi

ios - 如何取消UIlabel的UItouchevent

转载 作者:行者123 更新时间:2023-11-29 02:55:41 25 4
gpt4 key购买 nike

我不希望用户点击 UILabel 时触发 touchesBegan 事件。我如何实现它?任何帮助都会得到帮助。提前致谢。

最佳答案

您应该为您的标签启用用户intaractions

[yourLabel setUserInteractionEnabled:YES];

关于ios - 如何取消UIlabel的UItouchevent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23936276/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com