Skip to content

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

License

Notifications You must be signed in to change notification settings

kautaleksei/CHTStickerView

 
 

Repository files navigation

CHTStickerView

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.

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

0.3

  • Customizable outline border color
  • Customizable handler's size

0.2

  • Customizable handler position
  • Change delegate method name
  • Decrease minimumSize
  • Add comments in header file

0.1

  • Initial release

Try it yourself, and welcome to send me pull-requests.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published