type
status
date
slug
summary
tags
category
icon
password

1、重写 point(inside point: CGPoint, with event: UIEvent?) 方法

不推荐在 extension 中重写该方法,extension 的初衷是去扩展一个类,而不是去改变一个类
如果是个圆形:

2、重写 hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView?

同理,不推荐在 UIButton 的 extension 中实现该方法
如果是个圆形 (touchPointInsideCircle 方法在 (1) 中)
3、method swizzling 交换以上两个方法,不推荐
HTTP 和 HTTPS(三次握手、四次挥手、非对称加密、Charles 抓包流程)Runloop 的 Source0 和 Source1 详解(检测卡顿)