I want to create a diagram application, I can create some shapes. Every shape can be moved in the canvas. What is the best way to implement it? Now I know is just two way:
- with only UIView, draw all shapes in this UIView. When touch events reached, redraw everything.
- Create a UIView for each Shape, and every UIView can response UIEvent independently
Is there any other good way? The first is too complicated. The second seems has bad performance ?