开发者

UIApplication's openURL Crashes My App

开发者 https://www.devze.com 2023-02-28 17:22 出处:网络
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 goi

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

精彩评论

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