JFImagePickerController
JFImagePickerController copied to clipboard
高性能多选图片库
[[JFImageManager sharedManager] thumbWithAsset:asset resultHandler:^(UIImage *result) { //do something }]; 这个方法会返回图片两次 第一次返回略缩图 第二次返回 大图 如何判断是大图还是略缩图
目前默认是可选取9张图片,希望作者增加个最大可选图片数得功能,而且如果图片已经达到最大数量,选择的时候最好有提示,谢谢!
在- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;这个函数里,UIImageView是直接add在cell上的,而UIImageView *imgView = (UIImageView *)[cell.contentView viewWithTag:1];取错了,^_^ 感谢lz分享
在xcode中,通过菜单Product-->Analyze分析,存在好几处内存泄漏的问题,希望帮忙解决一下
可能不止用于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...
2015-07-10 19:21:00.204 JFImagePickerController[3497:1256692] **\* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '**\* setObjectForKey: key cannot be nil' **\* First throw call stack: (0x184f642d8 0x196c380e4 0x184e4d428 0x1000c7aac 0x100128fd4 0x100128f94 0x100136b54...