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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -