Peter Steinberger 7/4/2014

A Story About Swizzling "the Right Way™" and Touch Forwarding

Read Original

The 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.

A Story About Swizzling "the Right Way™" and Touch Forwarding

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet