objc_msgSend 标准调用方法 xcode6可能会报错

来源:互联网 发布:广告配音制作软件 编辑:程序博客网 时间:2024/05/19 14:19

//objc_msgSend 标准调用方法+(void) sendNewObjcMsg:(id) _target _sel:(SEL) _sel withObj:(id) _obj{    void (*objc_msgSendTyped)(id self, SEL _cmd, id _ddservice) = (void*)objc_msgSend;        objc_msgSendTyped(_target, _sel, _obj);}


xcode6,直接用objc_msgSend,可能会报错bad access



0 0
原创粉丝点击