I use a custom UICollectionView
to display iPhone's photos. I want to reload UICollectionView
when app become active after user delete/modify/add one or more photos.
I save PHAsset
in a array, [previousAssetsArray isEqual:currentAssetsArray]
is not working.
Any idea?
EDIT:
What is the NSObject isEqual: and hash default function?
When I get photos' assets again, its address changed, so previousAsset
will not equal to currentAsset
even they belong to a photo. [previousAsset isEqual: currentAsset]
always NO
.
I also use the property hash
of PHAsset
to check if photos changed. But I found when I just modified(crop) one photo in Photos app, its hash not changed.