Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: How to draw text curving along a UIBezierPath?

I need to programmatically draw something like this:-

curved text following a bezierpath line
(source: planetclegg.com)

Except that my UIBezierPath is closed & I need the text to fit inside it while following the curve. I have my path drawing correctly, the problem is the text. I've searched the 'net and read a bunch of tutorials but nothing seems to provide a solution. Is this possible in iOS, and if so how is it done? Links to relevant tutorials and/or code snippets would be much appreciated.

like image 584
Andrew Sumner Avatar asked May 30 '14 06:05

Andrew Sumner


1 Answers

You can see the sample code in my Github, the ArcText.

like image 197
NovemberEleven Avatar answered Nov 15 '22 00:11

NovemberEleven