UIApplication's openURL Crashes My App
I'm using UIApplication's openURL: method to open a website in Sa开发者_开发技巧fari. When the user came back to the app (fast switching), it relaunched. It means that my app was quit instead of going to the background.
Does anyone have the same issue? Any ideas? Thank you in advance.
It may be possible that you need to retain the URL object. That was once the issue for me
make sure that you are using
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
in your appdelegate rather than
- (void)applicationDidFinishLaunching:(UIApplication *)application
精彩评论