我有一个UITextView
,我想在文本视图中包含的每个链接上设置一个按钮。我已经强调了它。但没有办法在它上面设置一个按钮。我的目的是设置一个白色背景并改变链接的颜色。另外,按钮边缘应该是圆角的。
我强调它如下,
cell.text.linkTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor], NSUnderlineStyleAttributeName: [NSNumber numberWithInt:NSUnderlineStyleSingle]};
如何添加带有白色背景,蓝色文字颜色和圆边的按钮或可点击项目?