Thursday, 15 January 2015

objective c - iOS open source smart controller push/pop lib for uinavigationcontroller? -



objective c - iOS open source smart controller push/pop lib for uinavigationcontroller? -

i have application user can force infinitely deep views (pushing onto nav stack). @ point, there memory warning. i'd remove view controllers navigation controller , dealloc them. if user goes view controllers, i'd recreate view controllers , force them right position in stack.

is right way thinking problem?

is there open source project this? doesn't seem uncommon issue , i'd rather not reinvent wheel.

there time needed create sure calls viewdidload , viewdidunload matched memory warnings handled way. since ios 6 no longer necessary.

as says in documentation viewdidunload:

in ios 5 , earlier, when low-memory status occurred , current view controller’s views not needed, scheme opt phone call method after view controller’s view had been released. method chance perform final cleanup. if view controller stored separate references view or subviews, utilize method release references. utilize method remove references objects created back upwards view no longer needed view gone. not utilize method release user info or other info cannot recreated.

in ios 6 , later, clearing references views , other objects in view controller unnecessary.

if you're manually keeping big objects in memory, such image or video data, can override didreceivememorywarning release objects necessary.

ios objective-c uinavigationcontroller

No comments:

Post a Comment