如何移动形状层的位置(swift4)

时间:2018-07-15 18:31:39

标签: ios path swift4 cashapelayer

我的代码现在使用圆形进度视图,它位于屏幕的死点。我需要这个精确的圆形进度视图,才能在x轴上向下移动约150个像素。

textarea

1 个答案:

答案 0 :(得分:0)

您可以尝试,您说Y

$ g++ --version
g++ (GCC) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

或者是x

let center = CGPoint(x:view.center.x,y:view.center.y + 150)