//解决方案如下void do(XXX axxx){[axxx doSomething]} @implementation XXX - (void)callDo { do(self); } @end
意思就是把self 当参数传给c函数