ios6 - UICollectionView cleanup before disappearing -


i having uicollectionviewcontroller root controller in navigation controller. uicollectionviewcontroller not released / rebuild when move other controllers. had quite few troubles combination of "never released" of controller / nsfetchedresultcontroller / uicollectionview / uicollectionviewlayout. here situation -

  • i use collection view list items in database;
  • the collection view should updated item changed;
  • the other controllers update / delete / insert items;
  • there backend process update items

since both nsfetchedresultcontroller / uicollectionview maintains data states, , database kept changing (because of upserting data), these data states out of sync time time. have spent lots of time make them consistent. however, since data in local db, seems better approach clean data/cells when view disappears , rebuild when appearing again.

does know how cleanup uicollectionviewcontroller when view disappears? in case, might want release nsfetchedresultcontroller / remove event listening database / release data cached in collection view. thanks!


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -