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.
我在情节提要中创建了一个 UIToolbar。
| 按钮1 按钮2 按钮3 按钮4 |
在应用程序中,当我按下左边缘和按钮 1 之间的空间时,按钮 1 总是被触发。但是,如果我按下 button4 和右边缘之间的空间,则不会触发 button4。
有没有办法让右侧边距触发button4?
非常感谢,
您可以在右侧添加另一个按钮,设置其 alpha=0,并让它执行与按钮 4 相同的功能。