Way to draw NSString on a curved path?

匆匆过客 提交于 2020-01-14 09:04:04

问题


I have been looking for any example code for drawing a UILabel (or just an NSString or something) on a curved path, but have come up empty handed.

Does anyone know whether it's possible to draw text on a curved path, like a circle or something, without using separate pieces of graphics for every single letter?


回答1:


Split the String into letters and then so something like this:

How do I draw an NSString at an angle?

increasing the angle and changing the position after every letter.



来源:https://stackoverflow.com/questions/1528101/way-to-draw-nsstring-on-a-curved-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!