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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -