Display text in a cuved format

99封情书 提交于 2019-12-01 09:21:24

问题


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

Still looking for solution. Please help ?


回答1:


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.



来源:https://stackoverflow.com/questions/10792948/display-text-in-a-cuved-format

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