Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)touchesBegan: (CGPoint)point
- {
- [path moveToPoint:point];
- }
- - (void)touchesMoved: (CGPoint)point
- {
- [path addLineToPoint: point]; // (4)
- [self setNeedsDisplay];
- }
- - (void)drawRect:(CGRect)rect {
- [[UIColor whiteColor] setStroke];
- [path stroke];
- }
Add Comment
Please, Sign In to add comment