gpt4 book ai didi

ios - 按钮点击事件不触发

转载 作者:可可西里 更新时间:2023-11-01 00:57:09 29 4
gpt4 key购买 nike

目前,我正在使用一个需要单击按钮的 UI 当按钮 alpha 为 1 时,当我将其更改为 0 时,它工作得很好 我无法获得按钮触摸事件?有什么理由吗?

最佳答案

来自apple documentation :

To hide a view visually, you can either set its hidden property to YES or change its alpha property to 0.0. A hidden view does not receive touch events from the system. However, hidden views do participate in autoresizing and other layout operations associated with the view hierarchy. Thus, hiding a view is often a convenient alternative to removing views from your view hierarchy, especially if you plan to show the views again at some point soon.

关于ios - 按钮点击事件不触发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43980844/

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