Last active
January 3, 2016 15:19
-
-
Save ngutman/8481990 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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