Hacking Block Support Into UIMenuItem
UIMenuItem can support blocks by swizzling the responder chain, enabling cleaner API patterns instead of traditional selector-based callbacks.
Founder of PSPDFKit. iOS/macOS developer exploring AI-powered development tools and agentic workflows.
https://steipete.meUIMenuItem can support blocks by swizzling the responder chain, enabling cleaner API patterns instead of traditional selector-based callbacks.
Xcode 4.4's modern Objective-C subscripting syntax (array[index]) can work with iOS 4.3+ using a header-only hack.
Improved recursiveDescription method shows view controller hierarchies and containment for better iOS debugging.
iOS 5's NSURLCache now auto-saves web content to disk using SQLite, based on Cache-Control headers for better caching.
Developer turned visa wait into opportunity, transitioning from freelance to creating PSPDFKit as full-time indie developer.
KVO methods willChangeValueForKey and didChangeValueForKey are automatically called by setter methods, so manual calls are unnecessary.
Author relaunches blog to share iOS development tips and personal reflections.