Drawing circle in Objective-c

后端 未结 4 460
忘掉有多难
忘掉有多难 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:03

    Take a look at the Quartz 2D Programming Guide, especially the Ellipses and the Clipping to Paths sections. The rest is just some basic math and geometry.

    You subclass UIView, use the Quartz 2D framework to draw your circles and probably implement the touchesBegan: and touchesEnded: methods to handle taps on the circles.

提交回复
热议问题