Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #import "SecretWebView.h"
  2.  
  3.  
  4. @implementation SecretWebView
  5.  
  6. -(UIView*)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
  7. if ([[event allTouches] count] == 0) {
  8. return self.superview;
  9. } else {
  10. return self; //I have tried many things here...
  11. }
  12. }
  13.  
  14. @end
  15.  
  16. return [super hitTest:point withEvent:event];
  17. return self;
  18. return origObj; //where origObj was created in first line from the [super ...] call.
Add Comment
Please, Sign In to add comment