iPhone: draw the objects along the curve

前端 未结 1 1077
傲寒
傲寒 2021-01-27 13:33

Good day, friends.

There is a task: to draw repeating objects (UIImageView and UILabel) along the curve (if more exactly, it\'s an arc).

What classes should be

相关标签:
1条回答
  • 2021-01-27 13:58

    As an alternative to Android's Path, you can use either UIBezierPath or CGPath. The former is Objective-C, the later pure C. I recommend going with UIBezierPath as it's easier to use.

    To rotate a view, use the transform property of UIView (see this question for an example on how to use it). But note that you then need to ignore the frame (it's undefined) and need to move the view by modifying the center instead.

    0 讨论(0)
提交回复
热议问题