Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How do I get the selected items from a UICollectionViewController?

$
0
0

Hey guys,

I've created a screen which subclasses UICollectionViewController and provided data to it via the GetCell method. This control also has AllowMultipleSelection enabled. Everything works well. The issue now is, when segue-ing to the next screen, how do I know which of the items in the collection view were selected?

I looked through the docs for a collection of selected items and nothing obvious sprang out. I saw there was a ItemSelected/Deselected method I can override to maintain this manually, but that seems rather long winded.

Is there something I'm missing?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>