Creating a custom text-drawing view

后端 未结 3 1974
轮回少年
轮回少年 2021-02-06 17:16

I am creating a syntax highlighter for the iPhone and in order to display text with multiple formats, I have sub-classed UIView and modified the drawRect: method so

3条回答
  •  花落未央
    2021-02-06 18:01

    Check out TTStyledText in Three20 library. Not sure how well it matches your goals, but might serve you as an example. (The library itself is a bit bloated, but is a wonderful source to look at.)

提交回复
热议问题