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:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];
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.
Thanks a lot.
Ray