【发布时间】:2015-07-19 06:19:26
【问题描述】:
在我的应用程序中,我在标签中显示这样的文本
cell.lblUserDetails.text=[NSString stringWithFormat:@"%@ and %@ other likes your post", [dictionary valueForKey:@"username"], [dictionary valueForKey:@"CuriousCount"]];
在这里我想突出显示用户名和 CuriousCount(红色),并且用户名和 CuriousCount 应该是可点击的。
【问题讨论】:
-
尝试使用 NSAttributedString..使用这个链接stackoverflow.com/questions/14287386/…
标签: ios objective-c uilabel