ios preview

This commit is contained in:
dmcBig
2018-06-06 16:58:56 +08:00
parent 1d28dc8ef3
commit e198959c21
@@ -136,7 +136,7 @@
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
__weak typeof(self) weakSelf = self;
__weak PreviewViewController* weakSelf = self;
static NSString *identify = @"cell";
PreviewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:identify forIndexPath:indexPath];
PHAsset *asset=_preArray[indexPath.item];//访问已释放的对象