title: How to preserve iPhone application state before terminating the application?
body: <p>I have developed an iPhone application with tab bar and navigation controllers.</p>
  
  <p>It is working fine for now.</p>
  
  <p>Now I want the application to save its state before quitting.</p>
  
  <p>Suppose I have 6 tabs and If an incoming call comes , so after relaunching the app I should see the tab selected that was lastly selected .</p>
  
  <p>I have seen several questions on this topic but I am more confused after seeing them,</p>
  
  <p>can anyone tell me a straight way to do this ? </p>