캡처된 클릭 이벤트는 이전에 몇 개의 단추만 만들었을 뿐 열거하지 않습니다
-(void)tosystemAction:(id)sender
{
UIButton * bt = (UIButton *)sender;
if (bt.tag == 1) {
//
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://baidu.com"]];
}
else if (bt.tag == 2)
{
//
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://10086"]];
}
else if (bt.tag == 3)
{
//
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];
}
else if (bt.tag == 4)
{
//
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://[email protected]"]];
}
else if (bt.tag == 5)
{
//
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://maps.google.com/maps?q=Shanghai" ]];
}
}
//
-(void)tominAction:(id)sender
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"myapp://potatotravel" ]];
// openURL .plist ( )
}