CHTStickerView 0.5

CHTStickerView 0.5

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Nelson.




  • By
  • Nelson

A movable, resizable, rotatable UIView with one finger, which is fully customizable!

ScreenShot

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.

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.