![Platform](https://camo.githubusercontent.com/96af89f5fb6c6a79da8f82fa6b7202da57f568ebd14cf118fdc7407023d8948e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d253230694f532532302d626c75652e737667)
- IRSticker is a powerful sticker for iOS.
- See swift version in here: IRSticker-swift.
- Customize your stickers image.
- Customize your sitcker functions, max to 4.
- Default functions support:
- Delete
- Flip
- Move back to center of main view
- Scale and move
- Git clone this project.
- Copy this project into your own project.
- Add the .xcodeproj into you project and link it as embed framework.
- You can remove the
demo
and ScreenShots
folder.
- Add
pod 'IRSticker'
in the Podfile
pod install
#import <IRSticker/IRSticker.h>
IRStickerView *sticker1 = [[IRStickerView alloc] initWithContentFrame:CGRectMake(0, 0, 150, 150) contentImage:[UIImage imageNamed:@"sticker1.png"]];
sticker1.center = self.view.center;
sticker1.enabledControl = NO;
sticker1.enabledBorder = NO;
sticker1.tag = 1;
sticker1.delegate = self;
[self.view addSubview:sticker1];
- Use
IRStickerViewDelegate
, see in the demo project.
@protocol IRStickerViewDelegate <NSObject>
@optional
- (void)ir_StickerViewDidTapContentView:(IRStickerView *)stickerView;
- (UIImage *)ir_StickerView:(IRStickerView *)stickerView imageForLeftTopControl:(CGSize)recommendedSize;
- (void)ir_StickerViewDidTapLeftTopControl:(IRStickerView *)stickerView; // Effective when image is provided.
- (UIImage *)ir_StickerView:(IRStickerView *)stickerView imageForRightTopControl:(CGSize)recommendedSize;
- (void)ir_StickerViewDidTapRightTopControl:(IRStickerView *)stickerView; // Effective when image is provided.
- (UIImage *)ir_StickerView:(IRStickerView *)stickerView imageForLeftBottomControl:(CGSize)recommendedSize;
- (void)ir_StickerViewDidTapLeftBottomControl:(IRStickerView *)stickerView; // Effective when image is provided.
- (UIImage *)ir_StickerView:(IRStickerView *)stickerView imageForRightBottomControl:(CGSize)recommendedSize;
- (void)ir_StickerViewDidTapRightBottomControl:(IRStickerView *)stickerView; // Effective when image is provided.
@end
Stickers |
After effections |
![Demo](https://raw.githubusercontent.com/irons163/IRSticker/master/./ScreenShots/demo1.png) |
![Passcode Settings](https://raw.githubusercontent.com/irons163/IRSticker/master/./ScreenShots/demo2.png) |