JFImagePickerController icon indicating copy to clipboard operation
JFImagePickerController copied to clipboard

可设置可选图片数量上限

Open zld opened this issue 10 years ago • 2 comments

可能不止用于9图模式,比如想在修改头像的时候也用这个,就只需要上限为1。 使用方式如下:

- (void)preview:(UITapGestureRecognizer *)tap{
    UIView *temp = tap.view;
    JFImagePickerController *picker = [[JFImagePickerController alloc] initWithPreviewIndex:temp.tag];
    picker.maxImagesCount = 1;
    picker.pickerDelegate = self;
    [self presentViewController:picker animated:YES completion:nil];
}

- (void)pickPhotos{
    JFImagePickerController *picker = [[JFImagePickerController alloc] initWithRootViewController:nil];
    picker.maxImagesCount = 1;
    picker.pickerDelegate = self;
    [self presentViewController:picker animated:YES completion:nil];
}

zld avatar Sep 22 '15 10:09 zld

作者貌似最近很忙啊,一直都没空看

bawn avatar Nov 03 '15 11:11 bawn

抱歉- -最近确实有点忙。之后会更新,且更好用 :D

johnil avatar Nov 04 '15 06:11 johnil