hollowOutButton Is a hollow out button demo (object-c) How to use? Just change your button class to HollowOutButton, And then the hollow part can not be clicked now. You can override this method to filter custom colors : -(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event 如何使用? 只需将按钮的类改为HollowOutButton即可 镂空部分就无法被点击了 你也可以重写此方法过滤自定义颜色 -(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event