Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 自定义UILabel,如instragram_Ios_Objective C_Uilabel_Instagram - Fatal编程技术网

Ios 自定义UILabel,如instragram

Ios 自定义UILabel,如instragram,ios,objective-c,uilabel,instagram,Ios,Objective C,Uilabel,Instagram,profilename1对profilename2进行了评论 我的输出应该是这样的 我使用了UILabel 我的查询是profilename1,profilename2是绿色的,必须可以单击 当用户在profileviewcontroller加载后单击profilename1时。我使用了故事板 Uilabel放置在自定义表格单元格中 我应该如何在我的应用程序中实现这一点?可能吗 来源:在instragram中,当用户单击蓝色的用户名/配置文件名时,我将实现相同的行为 谢谢。您可以使用NSAttr

profilename1对profilename2进行了评论

我的输出应该是这样的

我使用了UILabel

我的查询是profilename1,profilename2是绿色的,必须可以单击

当用户在profileviewcontroller加载后单击profilename1时。我使用了故事板

Uilabel放置在自定义表格单元格中

我应该如何在我的应用程序中实现这一点?可能吗

来源:在instragram中,当用户单击蓝色的用户名/配置文件名时,我将实现相同的行为


谢谢。

您可以使用
NSAttributedString
,但如果您希望使用更简单、更个性化的解决方案,您可以尝试使用:。我曾多次看到它被用于这种确切的用途。

使用
NSAttributedString
来满足颜色和字体更改的需要。我已经知道,但用户名范围总是不固定。请详细说明如何使用确切的用途?