dear风会停息 2017-02-14 06:43 采纳率: 0%
浏览 1102

ios10 widget跳转不走appdelegate

如题:

  • (void)clickAction:(UIButton *)index{
    NSString *urlStr = [NSString stringWithFormat:@"LeadingCloudIOS://%li",index.tag];

    NSURL *url = [NSURL URLWithString:urlStr];

    [self.extensionContext openURL:url completionHandler:^(BOOL success) {
    NSLog(@"open url result:%d",success);
    }];
    }
    这是widget的跳转,
    在appdelegate中没有执行
    // ios9 之后
    -(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options{

    return YES;
    }此代理。
    有哪位大神也遇到同样的情况 求解答!!!在线等 急

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2017-02-18 15:33
    关注
    评论

报告相同问题?