How to make UIButton outside superview clickable

in superview.m file

1
2
3
4
5
6
7
8
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
if (CGRectContainsPoint(self.bounds, point) ||
CGRectContainsPoint(self.outsideButton.frame, point)) {
return YES;
}
return NO;
}