NSString *customURL = @"XXXX://";
iOS
[self.extensionContext openURL:[NSURL URLWithString:customURL] completionHandler:^(BOOL success) {
NSLog(@"open url result:%d",success);
}];
OSX
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:customURL]];
參考地址(可能需翻墻): http://indiestack.com/2014/12/open-url-from-today-extension/