ios - Reading a db again after re-opening the app -
ios - Reading a db again after re-opening the app -
i developing app that's reading db parse.com coordinates plotting out on mapkit-map. works fine when new pin added manually me on web @ parse.com, doesn't show when opening app after pushing home-button on phone.
where , how inquire if app has been shot down?
hope explained in understandable way.
it nice have app opening scratch every time opened launch-image , on. suppose not possible 1 has close apps in background double-clicking on phone.
thankful answers
if 'app has been shot down' mean app moved background after pressing home button, know event need implement applicationdidenterbackground:
method in appdelegate.m
these functions along comments created xcode, when start new project.
- (void)applicationdidenterbackground:(uiapplication *)application { nslog(@"app background"); /* utilize method release shared resources, save user data, invalidate timers, , store plenty application state info restore application current state in case terminated later. if application supports background execution, method called instead of applicationwillterminate: when user quits. */ }
to know when app opened again, implement applicationdidbecomeactive:
method in appdelegate.m
- (void)applicationdidbecomeactive:(uiapplication *)application { nslog(@"app active"); /* restart tasks paused (or not yet started) while application inactive. if application in background, optionally refresh user interface. */ }
ios objective-c methods
Comments
Post a Comment