objective c - Swizzling have to be on main thread? -
i succesfully swizziling imagenamed:
method when on main thread.
here code, js-ctypes: https://gist.github.com/noitidart/e8105a5f702dc9e6a4b8
i seem crashing when doing thread. i'm not sure if it's typo somwhere, i'm still digging can't seem find mistakes. wondering if swizziling method_setimplementation
not thread safe?
does same thread safety apply swizziling method_exchangeimplementations
?
i think have issue in code can recommend jrswizzle library https://github.com/rentzsch/jrswizzle , demo how use: https://github.com/kostiakoval/jrswizzleexample
Comments
Post a Comment