Display text in a cuved format

2020-03-26 08:02发布

I am looking to draw some text in curved format. It doesn't matter which control I use: UITextField, UILabel or UITextView.

I just want to show text something like shown in the image

enter image description here

Still looking for solution. Please help ?

1条回答
迷人小祖宗
2楼-- · 2020-03-26 08:55

Check out this link. Though this is for mac, i think you can port it for ios

ABOVE LINK IS OUT DATED. PLEASE FIND YOUR SOLUTION FROM THIS LINK

Other thing I can think is not an easy way out. Take a string as an array of letters, Take labels for each later and rotate each label to some angle that is calculated to create an arc for your text. Second approach need more manipulation and logic :) All the best.

查看更多
登录 后发表回答