Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在构建一个 iphone 游戏,当进度条已满时(即角色全功率时),用户可以单击进度条并触发一些动作。
如何使进度条像 uibutton 一样可点击?我看到了按钮选项的可访问性,但我不知道你是如何实现它的。
您可以添加 aUITapGestureRecognizer或将其放入UIButtonwith 类型UIButtonTypeCustom
UITapGestureRecognizer
UIButton
UIButtonTypeCustom