最佳答案
设置UIScrollView
的以下属性以启用UIButton
的触摸事件
scrollView.isUserInteractionEnabled = true
scrollView.isExclusiveTouch = true
scrollView.canCancelContentTouches = true
scrollView.delaysContentTouches = true
关于ios - 触摸手势在 Scrollview 中不起作用(Xcode、Swift),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54688404/