Skip to content

Instantly share code, notes, and snippets.

@s-aska
Created June 24, 2014 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-aska/0f829904d0618a5bbee3 to your computer and use it in GitHub Desktop.
Save s-aska/0f829904d0618a5bbee3 to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
@interface JFITransparent : UIView
@end
#import "JFITransparent.h"
@implementation JFITransparent
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
}
return self;
}
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
UIView *view = [super hitTest:point withEvent:event];
if (view == self) {
return nil;
}
return view;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment