iphone - Objective-C NSMethodSignature issue! -


basically i'm using "instancemethodsignatureforselector" part of construction of nstimer. problem below nsmethodsignature set "nil".

nsmethodsignature *signature = [[self class] instancemethodsignatureforselector:@selector(gravitymeth:sprite:)]; 

the selector it's looking @ below.

-(void) gravitymeth:(ccsprite*)sprite:(b2body*)body 

does have because can't see problem @ all!

thanks in advance!

-(void) gravitymeth:(ccsprite*)sprite:(b2body*)body 

that selector gravitymeth::, not gravitymeth:sprite:.

try:

 -(void) gravitymeth:(ccsprite*)sprite body:(b2body*)body 

which yield selector of gravitymeth:body: (which more descriptive -- better still applygravitysprite:withbody:).


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -