ios - UIButton的点击 Action ?
<p><p>我正在关注一本书来学习 IO 编程。对于 UIButton,它应该有一个点击 Action 。但是我只看到了一些 Action ,比如着陆等。</p>
<p>另外,想知道为什么默认 Action 不是“touch down”而是“touchUpInside”</p>
<p>我正在使用 XCode 4.3。 </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>iOS 中的点击 Action 被表示,但是 <code>touchUpInside</code>,因为点击是一个鼠标事件</p>
<p>touchUpInside,表示用户在一个按钮上按下,然后再向上触摸,而他仍然在同一个按钮上,这是您想要点击按钮时的正常行为</p></p>
<p style="font-size: 20px;">关于ios - UIButton的点击 Action ?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/11374608/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/11374608/
</a>
</p>
页:
[1]