UILabel text Issue in iphone

后端 未结 5 1553
醉话见心
醉话见心 2021-01-29 08:40

I have one label which have a Dynamic string data e.g: \"I am Mohit\" .I want to make only \"am\" in bold.Is it Possible in iphone? if yes please give me suggestion.Thanks in ad

5条回答
  •  误落风尘
    2021-01-29 09:40

    No you can't have text with different styles in standard UILabel. What you'll probably need to use is NSAttributedString and some custom solution to display them. Check this question for some possible options.

提交回复
热议问题