Tag: Objective-C
All the articles with the tag "Objective-C".
-
Calling Super at Runtime in Swift
Published:• 16 min readImplementing dynamic super calls in Swift through runtime manipulation, assembly language, and ARM64 register management for InterposeKit.
-
Challenges of Adopting Drag and Drop
Published:• 10 min readDiscusses the challenges and limitations faced when implementing drag and drop functionality for PDF editing on iOS 11.
-
UITableViewController designated initializer woes
Published:• 3 min readNavigate the complications of subclassing UITableViewController after iOS 8.3 introduced designated initializers that break proper initialization patterns.
-
Researching ResearchKit
Published:• 6 min readAnalyze Apple's first major open-source project ResearchKit to discover interesting implementation details and practical iOS development solutions.
-
Retrofitting containsString: on iOS 7
Published:• 1 min readBackport iOS 8's convenient NSString containsString: method to iOS 7 using runtime patching that won't conflict with Apple's implementation.
-
A Story About Swizzling "the Right Way™" and Touch Forwarding
Published:• 8 min readLearn why traditional method swizzling breaks UIKit's touch forwarding and discover a better approach that preserves _cmd integrity.
-
Smart Proxy Delegation
Published:• 4 min readEliminate delegate boilerplate code in Objective-C using NSProxy to automatically handle respondsToSelector checks and method forwarding.
-
Hacking Block Support Into UIMenuItem
Published:• 12 min readImplement block support for UIMenuItem by swizzling the responder chain to enable cleaner API patterns.
-
Using Subscripting With Xcode 4.4 And iOS 4.3+
Published:• 2 min readUse Objective-C's modern subscripting syntax with Xcode 4.4 and iOS 4.3+ through a clever header-only hack that enables array[index] notation.
-
Pimping recursiveDescription
Published:• 2 min readEnhance UIView's recursiveDescription to clearly show view controller hierarchies and containment relationships for easier debugging.