我想使用NSMutableAttributedString在CATextLayer上绘制包含文本的文本。let str = "I want to use NSMutableAttributedString to draw the text on the CATextLayer with the text.self.contentView.layer.addSublayer(contentLayer)
func initTextLayer(title: String, andFontSize size: CGFloat) -> CAT
我已经尝试了很多想法,但还没有成功,我的问题是,我有一个视频,我提供了一个功能,以编写文本的视频和拖/删除的视频现在我想设置的CATextlayer在视频上的位置是由用户设定,但它没有显示在适当的位置,CATextLayer *titleLayer = [CATextLayer layer];//<========code to set the text
titleLayer.string = self.strText