头像选择器
在使用 XQSreenshotController 只需要通过 image 设置一张图片,便可以在 delegate 中获取到你想要截取的图片
#CocoPods
pod 'XQSreenshotController', '~> 1.0.0'
支持iOS6+
@interface XQScreenshotViewController : UIViewController
@property(nonatomic, retain) UIImage *image;
@property(nonatomic, weak) id<XQScreenshotViewControllerDelegate> delegate;
@end
###使用
XQScreenshotViewController *screenshotViewController = [[XQScreenshotViewController alloc] init];
screenshotViewController.delegate = self;
screenshotViewController.image = headerImage;
实现此代理方法
-(void)screenshotViewController:(XQScreenshotViewController *) screenshotViewController didImage:(UIImage *) image;
如此简单
ARC
iOS>=6.0
iPhone \ iPad screen anyway
XQKit 交流:546456937
Github XQSreenshotController 链接

XQSreenshotController是一个简单的iOS头像选择器库,允许用户设置初始图片,并在代理方法中获取截图结果。支持iOS6+,集成方便,只需一行CocoPods命令。适用于快速实现头像截取功能。
424

被折叠的 条评论
为什么被折叠?



