以cuved格式显示文本 [英] Display text in a cuved format

查看:123
本文介绍了以cuved格式显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望以曲线格式绘制一些文字。我使用哪个控件无关紧要: UITextField UILabel UITextView

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 ?

推荐答案

查看此链接。虽然这是为Mac,我认为你可以为ios移植

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.

这篇关于以cuved格式显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆