Skip to content
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

能把问题描述得清楚一些么,我这里没有复现bug #2

Open
lcddhr opened this issue Jul 3, 2015 · 7 comments
Open

能把问题描述得清楚一些么,我这里没有复现bug #2

lcddhr opened this issue Jul 3, 2015 · 7 comments

Comments

@lcddhr
Copy link

lcddhr commented Jul 3, 2015

No description provided.

@wwdc14yh
Copy link
Owner

wwdc14yh commented Jul 3, 2015

不好意思 这几天在旅游 目前bug是 获取系统照片 照片大于1500张 就会崩 目测是照片过多 我借鉴了其他的三方库 不会出现能的原因 不清楚原因是什么 望大神解答下 蟹蟹!

@lcddhr
Copy link
Author

lcddhr commented Jul 3, 2015

用Instruments跑了一些,好多红的,内存飙升,哈哈,有空再改吧

@wwdc14yh
Copy link
Owner

wwdc14yh commented Jul 3, 2015

好的 非常感谢指出问题所在! 目前还没得什么思路 等我旅游回来再看看 其他demo是如何操作的

@L1MeN9Yu
Copy link

L1MeN9Yu commented Jul 7, 2015

然而微信的做法是只显示最近的100照片,而不是全部照片.

@Intomap
Copy link

Intomap commented Jul 17, 2015

  • (CGSize)collectionView:(UICollectionView _)collectionView layout:(UICollectionViewLayout *)collectionViewLayout
    sizeForItemAtIndexPath:(NSIndexPath *)indexPath
    {
    ALAsset *asset = [assets objectAtIndex:indexPath.row];
    ALAssetRepresentation *rp = [asset defaultRepresentation];
    CGFloat proportion = rp.dimensions.width/rp.dimensions.height;
    CGFloat w = floor((float)proportion
    ( tableViewPreviewRowHeight-10));
    CGSize asize = CGSizeMake( w , tableViewPreviewRowHeight-10);
    return asize;
    }

@Darcygsc
Copy link

不可能显示那么多图片的。 遍历1500张照片都需要很久的。所以微信最多只支持100张。不过你的demo在点击的时候还要有BUG,勾选图标显示不正常。

@wwdc14yh
Copy link
Owner

以上问题已经被修复 可以下载最新demo 测试下!

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

No branches or pull requests

5 participants