绘制图形

2016-10-07  本文已影响94人  酷酷的哀殿
@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
上一篇下一篇

猜你喜欢

热点阅读