-(IBAction)UC:(id)sender{
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"ucbrowser://"]]) {
[[UIApplication sharedApplication ] openURL:[NSURL URLWithString:@"ucbrowser://https://www.baidu.com"]];
NSLog(@"open uc...");
}
}
-(IBAction)LB:(id)sender{
//獵豹沒實現,如果有知道,請回一下。謝謝。
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"lb://"]]) {
[[UIApplication sharedApplication ] openURL:[NSURL URLWithString:@"lb://https://www.baidu.com"]];
NSLog(@"open lb...");
}
}
-(IBAction)QQ:(id)sender{
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mttbrowser://"]]) {
[[UIApplication sharedApplication ] openURL:[NSURL URLWithString:@"mttbrowser://url=https://www.baidu.com"]];
NSLog(@"open.qq..");
}
}
記得添加對應的Schema