Question

i'm having a collection view , segment control and a arraycontroller. i used setFilterPredicate: method to filter the data based on the segment pressed and displayed in collectionView. what my problem was the filtered data displayed in collectinview but the loactions were misplaced.enter image description here

can you see that collection items were displayed at the middle of the collection view? how can i bring them to front?

Was it helpful?

Solution

i used [arrayController removeObjects:[arrayController content]]; instead of [arrayController removeObjects:[arrayController arrangedObjects]];. i just replaced arranged objects to content.

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