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.07k stars 1.87k forks source link

选择图片数量限制bug ——请参照如下属性进行设置 #473

Closed Vincent-20481 closed 7 years ago

Vincent-20481 commented 7 years ago

4ce3981b-b8a8-4ea7-8ebd-6642ed046fb8 限制数量传入1张 选择按钮不显示 26770872-d460-41ad-b373-1144c454d3d0 裁剪框出现

banchichen commented 7 years ago

同学,不是界面默认表现不是你想要的,就是bug啊...

请参照如下属性进行设置: /// 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, assign) BOOL needCircleCrop; ///< 需要圆形裁剪框 @property (nonatomic, assign) NSInteger circleCropRadius; ///< 圆形裁剪框半径大小 @property (nonatomic, copy) void (^cropViewSettingBlock)(UIView *cropView); ///< 自定义裁剪框的其他属性