开发者

Draw text and image on a UIView or UIImageView?

开发者 https://www.devze.com 2023-02-20 17:58 出处:网络
I need to draw some text and some images(Escape character) on a View(UIView, UIImageView or whatever).I know override Draw method, or take a CGContext to generate a CGImage. But I don\'t know how to b

I need to draw some text and some images(Escape character) on a View(UIView, UIImageView or whatever).I know override Draw method, or take a CGContext to generate a CGImage. But I don't know how to bring about code. Can someone give me an example. Especially how to get the position when l开发者_如何学Cast component is drawn. Thanks very much.


Could you not just use a UILabel, and add it to the UIView?

0

精彩评论

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