Core Text: Render to an Odd Shape

后端 未结 2 764
孤城傲影
孤城傲影 2021-01-06 09:54

I am trying to render text to a shape that isn\'t a rectangle. The following code works when I add a rectangular path but not when I add an elliptical path. Ultimately, I\

2条回答
  •  不要未来只要你来
    2021-01-06 10:19

    you can draw on any sort of UIBeizerPath, sample code here: https://github.com/erica/iOS-5-Cookbook/tree/master/C10/19-Drawing%20onto%20Paths

提交回复
热议问题