사용 CAShapeLayer이
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path,NULL,0.0,200.0);
CGPathAddLineToPoint(path, NULL, 320.0f, 250.0f);
CGPathAddLineToPoint(path, NULL, 320.0f, 367.0f);
CGPathAddLineToPoint(path, NULL, 0.0f, 367.0f);
CGPathAddLineToPoint(path, NULL, 0.0f, 200.0f);
CAShapeLayer *shapeLayer = [CAShapeLayer layer];
[shapeLayer setPath:path];
[shapeLayer setFillColor:[[UIColor redColor] CGColor]];
[shapeLayer setStrokeColor:[[UIColor blackColor] CGColor]];
[shapeLayer setBounds:CGRectMake(0.0f, 0.0f, 160.0f, 480)];
[shapeLayer setAnchorPoint:CGPointMake(0.0f, 0.0f)];
[shapeLayer setPosition:CGPointMake(0.0f, 0.0f)];
[[[self view] layer] addSublayer:shapeLayer];
CGPathRelease(path);
추가 달성 회전보기에서 기본보기에 놓습니다. – Optimistic
@MidhunMP : 업데이트 된 질문을 확인하십시오. 제발 도와주세요. – Optimistic
CAShapeLayer와 CATextLayer를 동일하게 사용하려면 CoreText와 NSAttributedString도 확인하십시오. –