Skip to content

可设置可选图片数量上限 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

可设置可选图片数量上限 #4

wants to merge 2 commits into from

Conversation

zld
Copy link

@zld zld commented Sep 22, 2015

可能不止用于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];
}

@bawn
Copy link

bawn commented Nov 3, 2015

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

@johnil
Copy link
Owner

johnil commented Nov 4, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants