3.贝塞尔画椭圆
如果是整个椭圆的话,只需要设定好理想中的椭圆的外切圆即可。
//整个椭圆
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSaveGState(context);
UIBezierPath *arc = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(origin_x-100, origin_y-50, 200, 100)];
[[UIColor whiteColor] setStroke];
[arc stroke];
CGContextRestoreGState(context);
总结: 希望本文能对你有帮助。如果你有更好的想法,欢迎和我交流!
demo地址:https://www.easck.com/p/d8cc02e7efa7
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
注:相关教程知识阅读请移步到IOS开发频道。










