开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜