0
아래는 핵심 그래픽에서 그려야 할 플래그입니다.그림자를 추가하는 방법, 핵심 그래픽
내가 할 것은 : 내가 끝나는하고 아래
입니다Flag.m
- (void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 1.0);
CGContextMoveToPoint (context, 20, 10);
CGContextAddLineToPoint (context, 50, 10);
CGContextAddLineToPoint (context, 50, 90);
CGContextAddLineToPoint (context, 45, 90);
CGContextAddLineToPoint (context, 45, 95);
CGContextAddLineToPoint (context, 40, 92);
CGContextAddLineToPoint (context, 35, 90);
CGContextAddLineToPoint (context, 30, 92);
CGContextAddLineToPoint (context, 25, 95);
CGContextAddLineToPoint (context, 25, 90);
CGContextAddLineToPoint (context, 20, 90);
CGContextAddLineToPoint (context, 20, 10);
CGContextSetFillColorWithColor(context, [UIColor whiteColor].CGColor);
CGContextFillPath(context);
}
내 질문 : 나는 그림자를 추가 할 수있는 방법
그래서 내 깃발은 접은 것 같아. 위의 붉은 깃발과 같은 꼬리 부분에 말려서 뒤틀려 짐