UICollectionView without reusing cells
cocoa-touch, ios, objective-c
Solution
the reinitialization of the cell might be a little heavy
It's unlikely that resetting the contents of a cell will be more expensive than creating a new one -- the whole point of cell reuse is to improve performance by avoiding the need to constantly create new cells.
Trying to initialize the cell without dequeueReusableCellWithReuseIdentifier I get the exception:
I'd take that as a strong indication that the answer to your question is no. Further, the documentation says:
...the collection view requires that you always dequeue views, rather than create them explicitly in your code.
So again, no.
Problem
Just curious, is it possible to disable the reuse functionality on `UICollectionview`? I have a limited amount of cells, which may vary, but the reinitialization of the cell might be a little heavy and I'm better off not reusing them. Trying to initialize the cell without `dequeueReusableCellWithReuseIdentifier` I get the exception: NSInternalInconsistencyException', reason: 'the view returned from collectionView:cellForItemAtIndexPath: was not retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath.