Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top