草庐IT

objectPoint

全部标签

ios - 如何继续绘制Rect : when finger on screen

我有当前代码:-(void)touchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event{self.objectPoint=[[touchesanyObject]locationInView:self];floatx,y;if(self.objectPoint.x>self.objectPoint.x){x=self.objectPoint.x+1;}elsex=self.objectPoint.x-1;if(self.fingerPoint.y>self.objectPoint.y){y=self.objectPoint.y+1;}els