objective c - CCMenuItemLable don't run block or selector -


i'm trying use ccmenuitemlabel, when press nothing happens. have menu item sprite works same code.

any idea?

ccmenuitemlabel *milabel = [ccmenuitemlabel itemwithlabel:tmplabel target:self selector:@selector(dosomethingtest)];  milabel.tag = tmptag++; __block nsstring *actionname = [menuitemdata objectforkey:kactionname]; [milabel setblock:^(id sender) {       aslog2debug(@"[test]");       [self handlepressformenuitemwithactionname:actionname];  }]; 


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -