Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用bezierPathWithCGPath Swift_Swift_Cgpath_Nsbezierpath - Fatal编程技术网

如何使用bezierPathWithCGPath Swift

如何使用bezierPathWithCGPath Swift,swift,cgpath,nsbezierpath,Swift,Cgpath,Nsbezierpath,我需要做一个贝塞尔路径,我有CG路径 我发现的唯一信息是: 声明 迅捷的 第一个是正常编写的,第二个是斜体,第三个是紫色,在开发者库中 我应该如何使用它?请给我举个例子。如果您有一个有效的CGPath,只需执行以下操作: bezier_path = UIBezierPath(CGPath: your_cg_path) 在Swift中,Objective-C中绝大多数的yWithX类型方法被init方法所取代。有更多关于这个主题的信息 bezier_path = UIBezierPath(CGP

我需要做一个贝塞尔路径,我有CG路径 我发现的唯一信息是:

声明
迅捷的

第一个是正常编写的,第二个是斜体,第三个是紫色,在开发者库中


我应该如何使用它?请给我举个例子。

如果您有一个有效的CGPath,只需执行以下操作:

bezier_path = UIBezierPath(CGPath: your_cg_path)
在Swift中,Objective-C中绝大多数的
yWithX
类型方法被init方法所取代。有更多关于这个主题的信息

bezier_path = UIBezierPath(CGPath: your_cg_path)