在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
不管是啥都响应tableviewcell class JYShopCertificationCell: UITableViewCell { override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { return self } }
2.只穿透UICollectionView override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { let view = super.hitTest(point, with: event)
if let isBtn = view?.isKind(of: UICollectionView.self) { if isBtn == true, view?.tag == 100{ return self } } return view }
https://www.jianshu.com/p/4424ebd567d6 |
请发表评论