قالب وردپرس درنا توس
Home / IOS Development / cannot find it: collectionview.reloadData () vs collectionView.indexPathForSelectedItems ()

cannot find it: collectionview.reloadData () vs collectionView.indexPathForSelectedItems ()




I've seen, but so far not found the answer (but from my code I think I know it …).

If I call cv.reloadData (), the clear list of cv.indexPathForSelectedItems () is returned.

If I don't want behavior … can I override the collectionView class? How would I go about doing that?

Or, some other suggestions. I have to have a very complicated user interface and get everything to work becomes a challenge.

submitted by / u / must_defend_500
[comments]
Source link