ios - Objective c should Google map be cleared when leaving page? -
i've noticed memory taken google map quite high, have on tab in tabnav. question is, thought hide map when leave tab (to free memory) , reinitialize when come back? or best leave running?
in previous projects have initialised component within viewdidload (checking beingness initialised since can called more once), within viewwillappear doing same check (as swapping tabs may/probably won't phone call viewdidload again, , component may have deallocated code below) inside:
- (void)didreceivememorywarning { }
i deallocate / nil properties can disposed of incase os decides low on memory.. wouldn't bother clearing google maps out of memory since take time initialise if os doesn't have clear them, won't slow downwards app.
ios objective-c google-maps
No comments:
Post a Comment