hi I’m new to iOS development and i have a simple question.
I don’t know how to call the following method.
-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
//do something here
}
But when I use
[self ccTouchesBegan]
I get an error and it doesn’t work.
I know this is really simple question but I can’t figure it out by myself
Thank you.
those are delegate methods.u should not call it manually.
more over u didn’t give correct arg objects to it.
u have been using cocos2d
read it and make clear
http://www.cocos2d-iphone.org/wiki/doku.php/tips:touchdelegates