title: iOS How to exit current app after using UIApplication openURL to launch a browser
body: <p>I am very new to iOS development. The app I need is very simple: just open a web browser and go to a specific URL when my app is launched. So in the delegate file, in didFinishLaunchingWithOptions, I add a line of code:</p>
  
  <p>[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];</p>
  
  <p>The app can open safari and go to google, however when I press the home button and try to open the app again, I got a write screen. I know I must release the resource after I call the browser, but I don't know how to do it.</p>
  
  <p>Thanks a lot.</p>
  
  <p>Ray</p>