Question

How can i remove all the cell accessories within a table with the press of a button?

I wanted to go through all the table rows and set the accessory for each cell to none. To do this you need to know the indexPaths to be able to get the rows. This isn't possible within Mono Touch (but is in native code!).

Does anyone know how to solve this?

Was it helpful?

Solution

Have the button cause a table refresh, and set some flag that will tell GetCell() whether or not the accessory should be drawn.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top