Drawing circle in Objective-c

后端 未结 4 467
忘掉有多难
忘掉有多难 2021-02-02 04:36

I am a beginner in iPhone programing. I need to create circles like Figure 1, where it should be divided in six different parts with four different levels (see Figure 1). Furthe

4条回答
  •  悲哀的现实
    2021-02-02 05:11

    Pie Chart Example:

    int sum = 0;
    CGFloat offset;
    CGFloat angleArray[numberOfSections+1];
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetAllowsAntialiasing(context, true);
    CGContextSetShouldAntialias(context, true);
    
    for(int i=0; i

提交回复
热议问题