原来写法:
// 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
网友评论