4
我试着右对齐,但它仍然左对齐。SCNText对齐在iOS中不起作用
let txt = SCNText(string: "TEST", extrusionDepth: 10)
txt.chamferRadius = 5 //0<chamfer<extrusion depth
txt.firstMaterial.diffuse.contents = UIColor.whiteColor()
txt.containerFrame = CGRectMake(-200, -150, 400, 200) //on iPad Air Sim in Landscape
txt.wrapped = true
txt.alignmentMode = kCAAlignmentRight
什么是错?
谢谢!
谢谢你的回答。我测试了“TEST \ nT”,但它也没有对齐。你是否也使用swift?什么设备? – 2014-09-04 07:49:39
啊,我正在OS X操场上测试。当我在iOS模拟器中测试时,右对齐失败。看起来这可能是一个iOS特定的错误 - [可能是一个好主意来报告它。](http://bugreport.apple.com) – rickster 2014-09-04 22:44:29
谢谢你的提示。我刚刚报道过。 – 2014-09-11 12:50:31