84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我有一个问题想询问一下,我在UIView调用
(void)setNeedsDisplayInRect:(CGRect)rect;
来绘制UIView,逻辑如上图,我第一次传的rect为1的frame,绘制画布区域为我传的区域。区域2将是我第二次会绘制的区域,然后是3和4区域,都不是完整的矩形,我该如何传rect或者使用何种方法能达到我的需求,谢谢!
Does it have to be drawn on a uiview? Can’t you use multiple views to splice them?
Does it have to be drawn on a uiview? Can’t you use multiple views to splice them?