(杂记)如何利用函数指针和runtime直接调用一个方法 千同学 2020-11-23 207 阅读1分钟 BOOL (*allowsWeakReference)(objc_object *, SEL) = (BOOL(*)(objc_object *, SEL)) object_getMethodImplementation((id)referent, @selector(allowsWeakReference));