Skip to content

Instantly share code, notes, and snippets.

@ngutman
Last active January 3, 2016 15:19
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/8481990 to your computer and use it in GitHub Desktop.
Save ngutman/8481990 to your computer and use it in GitHub Desktop.
#import "GGView.h"
#import "GGDraggableView.h"
@interface GGView ()
@property (nonatomic, strong) GGDraggableView *draggableView;
@end
@implementation GGView
- (id)init
{
self = [super init];
if (!self) return nil;
self.backgroundColor = [UIColor whiteColor];
[self loadDraggableCustomView];
return self;
}
- (void)loadDraggableCustomView
{
self.draggableView = [[GGDraggableView alloc] init];
[self addSubview:self.draggableView];
}
- (void)layoutSubviews {
[super layoutSubviews];
self.draggableView.frame = CGRectMake(60, 60, 200, 260);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment