banchichen / TZImagePickerController

一个支持多选、选原图和视频的图片选择器,同时有预览、裁剪功能,支持iOS6+。 A clone of UIImagePickerController, support picking multiple photos、original photo、video, also allow preview photo and video, support iOS6+
MIT License
8.05k stars 1.86k forks source link

可不可以加入裁剪功能 #207

Closed GreatLiyi closed 7 years ago

GreatLiyi commented 8 years ago

在图片预览界面加入裁剪功能

banchichen commented 7 years ago

目前还没有这个计划....

banchichen commented 7 years ago

1.7.2版本更新,单选时可选裁剪功能,裁剪框可为任意矩形,新增如下属性: /// Single selection mode, valid when maxImagesCount = 1 /// 单选模式,maxImagesCount为1时才生效 @property (nonatomic, assign) BOOL showSelectBtn; ///< 在单选模式下,照片列表页中,显示选择按钮,默认为NO @property (nonatomic, assign) BOOL allowCrop; ///< 允许裁剪,默认为YES,showSelectBtn为NO才生效 @property (nonatomic, assign) CGRect cropRect; ///< 裁剪框的尺寸 @property (nonatomic, copy) void (^cropViewSettingBlock)(UIView cropView); ///< 自定义裁剪框的其他属性 @property (nonatomic, copy) void (^cropBgViewSettingBlock)(UIView cropBgView); ///< 自定义裁剪框背景的其他属性

详见Demo, 代码已更新到github,pod版本明天更新到1.7.2~

GreatLiyi commented 7 years ago

@banchichen 太棒了,感谢