绘制图形
程序员文章站
2022-05-25 21:17:10
...
- 绘制椭圆
@interface SunView : UIView
@end
@implementation SunView
- (void)drawRect:(CGRect)rect {
[super drawRect:rect];
UIBezierPath *path = [UIBezierPath bezierPathWithOvalInRect:self.bounds];
[[UIColor redColor] setFill];
[path fill];
}
@end
上一篇: 绘制图形
下一篇: vue打包后数据在ie中不显示