A Story About Swizzling "the Right Way™" and Touch Forwarding
Read OriginalThe article discusses the author's experience with method swizzling in Objective-C, highlighting problems like app freezes when interacting with other SDKs. It critiques the standard use of `method_exchangeImplementations`, explains why it's flawed (e.g., breaking `_cmd` assumptions), and presents an alternative, safer implementation using blocks and careful runtime manipulation.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser