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;
    }此代理。
    有哪位大神也遇到同样的情况 求解答!!!在线等 急

http://blog.csdn.net/codingfire/article/details/50392611