开发者

Multiline CATextLayer

I'm trying to recreate the multiline UILabel开发者_如何学JAVA with a CATextlayer.

Is there a property for CATextLayer, or do I need to create it myself?


I'm not sure what you mean exactly, but if you add a CATextLayer to a view, you can set it to have the same bounds as the view and if you enable the wrapped property on the CATextLayer, the text will word wrap. You can then also set the resizing mask on the layer so that changes to the view will be reflected in the layer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜