Skip to content

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