views:

419

answers:

2

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  A: 

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

http://stackoverflow.com/questions/930313/how-do-i-draw-an-nsstring-at-an-angle

increasing the angle and changing the position after every letter.

Chilloutman
A: 

Check out http://github.com/yllan/funtextfield It's a mac example, but you can also porting it to iPhone.

yllan