IPhone : iOS: Present View Controller destroys UICollectionView

on Sunday, April 19, 2015

I'm presenting modally another UIViewController inside a view controller. The original view controller consists of two collection views, both of which have some cells that contain image subviews. When the new view controller is presented, these two collection views are 'destroyed'; that is, the images inside these collection views cannot be viewed anymore and the cell structures and layout of these collection views are destroyed as well.


But I would like to keep the collection views; that is, after I dismiss the presented view controller, I would be able to see the collection views without change, as if the view controller has never been presented before.


Anybody knows how to solve this problem?


0 comments:

Post a Comment