objective c - How to reopen last view while open the app after terminating in iOS -


i new in ios application development don't have special idea resources available in ios development. want if on particular view , terminate app clicking on "home" button, while open app again, should open last page on while terminating app. since app not terminated, in background.

i can show snapshot of storyboard if can describe question in better way-

enter image description here

in screenshot, when open app after closing it, if not logged in when open app, login screen (1) open. , if logged in (4) open. correct. suppose if on (5) before closing app, opens (4), should not happen. how control that?

if have idea that, please share.

thanks in advance.

you can see reference here

https://developer.apple.com/videos/wwdc/2012/?id=208

and here

http://useyourloaf.com/blog/2013/05/21/state-preservation-and-restoration.html

and here

https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=utf-8#q=ios%20restore%20state%20stackoverflow


Comments