Netease-Music-Demo by sss
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UIButtonScrollView.swift 343B

12345678910111213141516171819
  1. //
  2. // UIButtonScrollView.swift
  3. // wyy
  4. //
  5. // Created by 施书顺 on 2021/3/5.
  6. //
  7. import UIKit
  8. class UIButtonScrollView: UIScrollView {
  9. override func touchesShouldCancel(in view: UIView) -> Bool {
  10. if view.isKind(of: UIButton.self){
  11. return true
  12. }
  13. return super.touchesShouldCancel(in: view)
  14. }
  15. }