垂直对齐CATextLayer中的文本? [英] vertically align text in a CATextLayer?
本文介绍了垂直对齐CATextLayer中的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个我想在Mac和iOS上使用的CATextLayer。我可以控制图层中文本的垂直对齐吗?
I am working on a CATextLayer that I want to use in both Mac and iOS. Can I control the vertical alignment of the text within the layer?
在这种特殊情况下,我想垂直居中 - 但是有关其他垂直对齐的信息也是感兴趣。
In this particular case, I want to center it vertically -- but information about other vertical alignments would also be of interest.
编辑:我发现这个,但我无法使其发挥作用。
I found this, but I can't make it work.
推荐答案
最好的我可以说,我的问题的答案是不。
As best I can tell, the answer to my question is "No."
这篇关于垂直对齐CATextLayer中的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文