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
Post a Comment