From e198959c211cc5c66d0b23540c3ccec1d9b5c11a Mon Sep 17 00:00:00 2001 From: dmcBig Date: Wed, 6 Jun 2018 16:58:56 +0800 Subject: [PATCH] ios preview --- src/ios/DMCMediaPicker/PreviewViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/DMCMediaPicker/PreviewViewController.m b/src/ios/DMCMediaPicker/PreviewViewController.m index 8dec13c..1adcdfe 100644 --- a/src/ios/DMCMediaPicker/PreviewViewController.m +++ b/src/ios/DMCMediaPicker/PreviewViewController.m @@ -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];//访问已释放的对象