Groups
Groups
Sign in
Groups
Groups
iOS development
Conversations
About
Send feedback
Help
<week share>关于CCCallFunc、CCCallFuncN、CCCallFuncFD
7 views
Skip to first unread message
没、方向感
unread,
Jan 9, 2012, 10:42:11 PM
1/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iOS development
cocos2d中有3种回调方式:CCCallFunc、CCCallFuncN和CCCallFuncND.
CCCallFunc是执行对应的回调方法,其中回调方法不可带参数。
CCCallFuncN多带一个参数,而参数本身是动作Aciton本身。就像UIButton那样,我们可以
@selector(btnUpInside:),带的参数就是UIButton本身。
CCCallFuncND带2个参数,一个是动作Action本身,一个是你自己定义的回调函数的参数。(参数可以是个常量也可以是一个指针)。
Reply all
Reply to author
Forward
0 new messages