httpLabel=[[UILabel alloc]initWithFrame:CGRectMake((kScreenWidth-120)/2,420*kHeightScale, 120, 60)];
httpLabel.textAlignment=NSTextAlignmentCenter;
///加下划线
NSMutableAttributedString *content=[[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"%@",@"www.yitu8.com"]];
NSRange contentRange = {0,[content length]};
[content addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:contentRange];
httpLabel.attributedText=content;
httpLabel.userInteractionEnabled=YES;
httpLabel.textColor=UIColorFromRGBWithAlapha(0, 180, 255, 1);
[self.view addSubview:httpLabel];
UITapGestureRecognizer *tapGesture =
[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(openURL:)] ;
[httpLabel addGestureRecognizer:tapGesture];
-(void)openURL:(UITapGestureRecognizer *)gesture{
NSString *url = nil;
url = @"网址";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
}