draw line between two points in iphone?

后端 未结 3 804
猫巷女王i
猫巷女王i 2020-12-11 09:41

\"enter The above picture indicate the redpoint, i like to join those points.

I like t

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 10:33

    Create your UIImageView subclass, add some methods which will allow to add point's on user touch (will draw them in drawRect: and also place into C-array) and one method to "commit" line. Commit line will simply go through C-array and draw them in context with CG methods.

提交回复
热议问题