29,028
社区成员
发帖
与我相关
我的任务
分享
NSMutableAttributedString *content = [[NSMutableAttributedString alloc] initWithString:[@"如果收不到验证码,请致电:" stringByAppendingString:kTelephone]];
content.font = [UIFont systemFontOfSize:14.f];
[content setTextHighlightRange:NSMakeRange(13, content.string.length - 13)
color:UIColorHex(0x4286FF)
backgroundColor:UIColorHex(0x606060)
tapAction:^(UIView *containerView, NSAttributedString *text, NSRange range, CGRect rect) {
UIWebView *webView = [[UIWebView alloc]init];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",@"110"]];
[webView loadRequest:[NSURLRequest requestWithURL:url ]];
[self.view addSubview:webView];
}];
NSMutableAttributedString *content = [[NSMutableAttributedString alloc] initWithString:[@"如果收不到验证码,请致电:" stringByAppendingString:kTelephone]];
content.font = [UIFont systemFontOfSize:14.f];
[content setTextHighlightRange:NSMakeRange(13, content.string.length - 13)
color:UIColorHex(0x4286FF)
backgroundColor:UIColorHex(0x606060)
tapAction:^(UIView *containerView, NSAttributedString *text, NSRange range, CGRect rect) {
NSURL *url=[NSURL URLWithString:@"telprompt://10086"];
[[UIApplication sharedApplication]openURL:url];
}];