using method_exchangeImplementations to replace class_replaceMethod
liuzhiyi1992 opened this issue · 0 comments
liuzhiyi1992 commented
In the case we sure that + alloc and + fb_newAlloc exist, shall we use method_exchangeImplementations to replace class_replaceMethod ?
This way we can remove the medium + fb_originalAlloc, and positive to change IMP between originalSEL and replacementSEL rather than two SEL point to one IMP, this can help us to reduce the potential risk and the probability of a problem. Have i a wrong place?