We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
///扩大点击响应面积,edge 正数值是缩小面积,扩大是负数
func expandResponseArea(edge:UIEdgeInsets){ let imp: @convention(block) (UIView , CGPoint , UIEvent ) -> Bool = { (v,p,e) in v.callOriginalMethod { v.point(inside: p, with: e) //必须调用一次原始方法 } let r = v.bounds.inset(by: edge) return r.contains(p) } //劫持point(inside:with: self.hookMethod(#selector(UIButton.point(inside:with:)), impBlock: imp) //Crash Here:Thread 1: EXC_BAD_ACCESS (code=2, address=0x215c5e880) }
The text was updated successfully, but these errors were encountered:
只有 升级到iOS 14.5 才触发,且 6s X 不会触发,11,12 ,Xs 会触发。 很奇怪
Sorry, something went wrong.
facebook/fishhook#82 fishhook这边有解释
No branches or pull requests
///扩大点击响应面积,edge 正数值是缩小面积,扩大是负数
The text was updated successfully, but these errors were encountered: