上記で必要なもの(coreplotを使用しない)。このコードを関連するdrawRect/drawInContextメソッドに配置します。
Macではないので、コンパイルされるかどうかは100%確実ではありません。近くにある必要があります。また、90年までに出る可能性があります
#include <math.h>
CGFloat radius = 100;
//CGFloat pi = 3.1415927; //comes for free in math.h
//draw underlying circle;
UIBezierPath *basecircle = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(0,0,radius*2,radius*2)];
[[UIColor blackColor] set];
[basecircle fill];
CGFloat starttime = pi/6; //1 pm = 1/6 rad
GFloat endtime = pi; //6 pm = 1 rad
//draw arc
CGPoint center = CGPointMake(radius,radius);
UIBezier *arc = [UIBezierPath bezierPath]; //empty path
[arc moveToPoint:center];
CGPoint next;
next.x = radius + radius * sin(starttime);
next.y = radius + radius * cos(starttime);
[arc moveToPoint:next]; //go one end of arc
[arc addArcWithCenter:center radius:radius startAngle:starttime endAngle:endtime clockwise:YES]; //add the arc
[arc moveToPoint:center]; //back to center
[[UIColor yellowColor] set];
[arc fill];