开发者

Any way to alter text attributes within a UITextField?

开发者 https://www.devze.com 2023-02-20 03:42 出处:网络
Simply stated - I want to have a scrollable text field with a paragraph of text.Some of th开发者_如何学编程e sentences should be bold and blue while others are red and normal, while the remainder is s

Simply stated - I want to have a scrollable text field with a paragraph of text. Some of th开发者_如何学编程e sentences should be bold and blue while others are red and normal, while the remainder is simple black/normal text.

Any way to alter the text attributes 'within / amongst' the text?

Thanks!


  • A lie for your sanity: no, you cannot do this.

  • The truth (use with caution): You can create attributed strings... using core text (but just don't even bother lol - its not worth it).

  • The compromise: Use a UIWebView and HTML. :) Can't say fairer than that.

0

精彩评论

暂无评论...
验证码 换一张
取 消