title: iOS Application does not return to same View Controller
body: <p>I am using Camera in my application. I check for camera permission and if the camera permission is not enabled I show a dialog asking the user to go to settings.</p>
  
  <p>If the user accepts I redirect to Settings page. Here 2 cases occur -</p>
  
  <p>1) If the user accepts the dialog and goes to settings page but does not enable camera permission but clicks Back(with App Name, not the Back on Settings Navigation Bar) the view controller which redirected to Settings is shown.</p>
  
  <p>2) If the user enables the camera permission and clicks back, the Home View Controller of the app is shown.</p>
  
  <p>I want to show the view controller which redirected to Settings in both the cases.</p>
  
  <p>I have the below code in my View Controller but still this function is not called in the 2nd case.</p>
  
  <p><code>[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActive) name:UIApplicationDidBecomeActiveNotification object:nil];
  </code></p>
  
  <p>I am using Objective-C</p>