有没有办法有UILabels或UITextViews用UIButtons?
UILabels
UITextViews
UIButtons
例1:“这辆车是黄色的,有4个轮子。”
其中汽车是UIButton,并且可以在句子中。
UIButton
NSAttributedString在所需的范围内使用带有的链接,并在中显示它们TTTAttributedLabel。然后,每当点击链接时,您都可以获取回调。
NSAttributedString
TTTAttributedLabel
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句