Skip to content

Instantly share code, notes, and snippets.

@ngutman
Created January 17, 2014 23:36
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 ngutman/8483692 to your computer and use it in GitHub Desktop.
Save ngutman/8483692 to your computer and use it in GitHub Desktop.
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (!self) return nil;
self.panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(dragged:)];
[self addGestureRecognizer:self.panGestureRecognizer];
[self loadImageAndStyle];
self.overlayView = [[GGOverlayView alloc] initWithFrame:self.bounds];
self.overlayView.alpha = 0;
[self addSubview:self.overlayView];
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment