美文网首页
模拟器crash真机正常运行

模拟器crash真机正常运行

作者: _叮叮当当__ | 来源:发表于2018-10-29 17:40 被阅读6次

原来写法:

//            id (*new_msgSend)(id, SEL,BOOL) = (id (*)(id, SEL,BOOL)) objc_msgSend;
//            new_msgSend(Hymanager,setEnabled,YES);

修改后的写法

((void(*)(id, SEL,BOOL))objc_msgSend)(Hymanager,setEnabled,YES);

参考:

1、https://developer.apple.com/library/archive/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html#//apple_ref/doc/uid/TP40013501-CH3-SW26

相关文章

网友评论

      本文标题:模拟器crash真机正常运行

      本文链接:https://www.haomeiwen.com/subject/xjqitqtx.html