Skip to content

Instantly share code, notes, and snippets.

@syou007
Created April 2, 2016 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syou007/8367e1524ec81308990452bea71d622b to your computer and use it in GitHub Desktop.
Save syou007/8367e1524ec81308990452bea71d622b to your computer and use it in GitHub Desktop.
Mac 10.11(capitan)でCocos2dを動かすと画面遷移でエラーが出る。 ref: http://qiita.com/syou007/items/e8d9fee4b75397e9958d
-(void)draw:(CCRenderer *)renderer transform:(const GLKMatrix4 *)transform
{
// typedef id (*Func)(id, SEL);
// ((Func)objc_msgSend)(self, _drawSelector);
void (*Func)(id, SEL) = (void(*)(id, SEL)) objc_msgSend;
Func(self, _drawSelector);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment