苹果提供的控件中具有自动识别URL、电话、邮箱等功能并且点击可跳转的似乎只有UITextView,如果你有其他更方便的方式麻烦告知。
如果你想实现这个功能需要使用UITextView展示你的内容。
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, SCREEN_WIDTH-30, 10)];
//系统会为其默认设置距UITextView上、下边缘各8的页边距
textView.textContainerInset = UIEdgeInsetsMake(0, 0, 0, 0);
//textContainer中的文段的上、下、左、右又会被填充5的空白
textView.textContainer.lineFragmentPadding = 0;
textView.backgroundColor = [UIColor clearColor];
textView.font = [UIFont systemFontOfSize:14];
textView.textColor = HEXCOLOR(0x333333ff);
//禁止编辑
textView.editable = NO;
//设置需要识别的类型,这设置的是全部
textView.dataDetectorTypes = UIDataDetectorTypeAll;
[self.contentView addSubview:textView];