开发者

Any way to alter text attributes within a UITextField?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜