Awesome
CHTStickerView
A movable, resizable, rotatable UIView with one finger, which is fully customizable!
Prerequisite
- ARC
- iOS 6+
- Xcode 5+, for the sample project.
Feature
- Independent.
- Fully customizable.
- Easy to use.
- All delegate methods are optional.
Installation
Manual
Add CHTStickerView.{h,m}
to your Xcode project.
CocoaPods
Add pod 'CHTStickerView'
to your Podfile.
How To Use
See the Sample
project for more details.
- (void)viewDidLoad {
[super viewDidLoad];
UIView *testView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 150, 100)];
testView.backgroundColor = [UIColor redColor];
CHTStickerView *stickerView = [[CHTStickerView alloc] initWithContentView:testView];
stickerView.center = self.view.center;
stickerView.delegate = self;
[stickerView setImage:[UIImage imageNamed:@"Close"] forHandler:CHTStickerViewHandlerClose];
[stickerView setImage:[UIImage imageNamed:@"Rotate"] forHandler:CHTStickerViewHandlerRotate];
[self.view addSubview:stickerView];
}
Inspiration
CHTStickerView is heavily inspired by ZDStickerView and IQStickerView.
ChangeLog
See the Releases Page.
Try it yourself, and welcome to send me pull-requests.