问题
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