NSURL * myURL_APP_A = [NSURL URLWithString:@"alipay:"];
if (![[UIApplication sharedApplication] canOpenURL:myURL_APP_A]) {
//如果没有安装支付宝客户端那么需要安装
UIAlertView *message = [[UIAlertView alloc]initWithTitle:@"提示信息" message:@"点击确定安装支付宝钱包!" delegate:self cancelButtonTitle:@"确定" otherButtonTitles: nil];
[message show];
return;
}
if (![[UIApplication sharedApplication] canOpenURL:myURL_APP_A]) {
//如果没有安装支付宝客户端那么需要安装
UIAlertView *message = [[UIAlertView alloc]initWithTitle:@"提示信息" message:@"点击确定安装支付宝钱包!" delegate:self cancelButtonTitle:@"确定" otherButtonTitles: nil];
[message show];
return;
}