I am experiencing a problem with switching app from background to foreground.
It is a tab bar based app. If i launch the app immediately it redirects to the view controller where i left off. but if I launch it after 5/10 min(basically after some period). It launches the app from initial screen.
From google, I read that if my app is in background for a while, it will be killed from by the Operating system based on the need of RAM for other application.
1. is this the only reason for the above problem or any other reasons ?