나는 draw rect에서 다음 코드를 사용하여 간단한 채워진 원을 그립니다.다른 원과 함께 CGContextFillEllipseInRect를 사용하여 만든 원을 자르는 방법
CGContextRef con = UIGraphicsGetCurrentContext();
CGContextAddEllipseInRect(con, CGRectMake(0,0,self.bounds.size.width,self.bounds.size.height));
CGContextSetFillColorWithColor(con, [UIColor blueColor].CGColor);
CGContextFillPath(con);
제대로 원을 그립니다. 이제 중간에 다른 작은 원이있는 원을 잘라서 원이되고 원 아래에있는 것이 무엇이든 볼 수 있습니다. 내가 어떻게 할 수 있니?
내가 말했듯이 대답은 엉망이 아닙니다. – peko