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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top