代码工作正常与其他环节而不是机智Youtube链接特别是当链接包含视频ID ......无法发送YouTube视频链接,以什么应用,因为短信
NSString*str=[NSString stringWithFormat:@"http://youtube.com/watch?v=%@",myVideoId];
NSString*Wastring2=[ NSString stringWithFormat:@"whatsapp://send?text=%@",str];
NSURL *whatsappURL = [NSURL URLWithString:Wastring2];
if ([[UIApplication sharedApplication] canOpenURL: [whatsappURL absoluteURL]]) {
[[UIApplication sharedApplication] openURL: [whatsappURL absoluteURL]];
}
谢谢。
thanx的答案... BT无法发送机智ID http://youtube.com/watch?v=id – sankalp
什么不工作是什么呢? – slecorne
“youtube.com/watch?v=id”如果我删除“=”符号,那么它的工作原理 – sankalp