UIbutton 在旋转和移动时不再执行操作
我有一个通过用户触摸旋转的视图,该视图有 4 个相对于视图移动的按钮。如果我尝试点击一个它没有响应,它仍然认为该按钮位于其初始位置。请帮忙,提前致谢。
I have a view which is rotated by the user's touch, the view has 4 button that move around relative to the view. if i then try to tap on one it doesn't respond,it still thinks the button is in its initial location. please help, thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保没有任何其他东西重叠按钮,因为它会响应点击而不是按钮。在界面生成器中打开显示边界矩形
make sure that there is nothing else overlapping the button as it would respond to the tap instead of the button does. In interface builder turn on show bounding rectangles