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];//访问已释放的对象