Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ (void)SafariOpenURL:(NSURL *)URL #5

Open
howiei opened this issue Jun 15, 2018 · 5 comments
Open

+ (void)SafariOpenURL:(NSURL *)URL #5

howiei opened this issue Jun 15, 2018 · 5 comments

Comments

@howiei
Copy link

howiei commented Jun 15, 2018

  • (void)SafariOpenURL:(NSURL *)URL
    if (@available(iOS 10.0, *)) { // 这是在iOS10以上的系统打开方式,没有考虑else情况
    [[UIApplication sharedApplication] openURL:URL options:@{UIApplicationOpenURLOptionUniversalLinksOnly : @no} completionHandler:^(BOOL success)
    {
    if (!success) {
    [UIAlertController PAlertWithTitle:@"提示" message:@"打开失败" completion:nil];
    }
    }];
    } eles {
    该方法内部是不是需要加个判断,在iOS10以下系统无法跳转App Store
    // 跳转苹果商店
    [[UIApplication sharedApplication] openURL:URL];
    }
@llyouss
Copy link
Owner

llyouss commented Jun 15, 2018

2018-06-15 1 02 12

@llyouss
Copy link
Owner

llyouss commented Jun 15, 2018

有的呢

@howiei
Copy link
Author

howiei commented Jun 15, 2018

jietu20180615-183545

@howiei
Copy link
Author

howiei commented Jun 15, 2018

还有另外一个问题,隐藏状态栏之后,iOS 10 之后的系统版本,状态栏有问题
jietu20180615-183253

@llyouss
Copy link
Owner

llyouss commented Jun 15, 2018

谢谢,多谢参与,我们逐渐改进

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants