I Have it:
How i can repair?
thanx
Code:
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
CGPoint newTouch = [[touches anyObject]locationInView:[self~CCC superview]]; // Error Expected':'before '~' token
CGPoint lastTouch = [[touches anyObject]previousLocationInView:[self~CCC superview]];
float xDif = newTouch.x - lastTouch.x;
float yDif = newTouch.y - lastTouch.y;
CGAffineTransform translate = CGAffineTransformMakeTranslation(xDif,~CCC yDif);
[self setTransform: CGAffineTransformConcat([self transform],~CCC translate)];
}
-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
}
-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
[self touchesEnded:touches withEvent:event];
}
@end
How i can repair?
thanx
Last edited by a moderator: