Posts
All the articles I've posted.
-
Fixing UISearchDisplayController On iOS 7
Published:• 1 min readFix the broken animation, frame positioning, and status bar issues in UISearchDisplayController on iOS 7 with this comprehensive solution.
-
Smart Proxy Delegation
Published:• 4 min readEliminate delegate boilerplate code in Objective-C using NSProxy to automatically handle respondsToSelector checks and method forwarding.
-
Adding Keyboard Shortcuts To UIAlertView
Published:• 3 min readAdd keyboard shortcuts to UIAlertView and UIActionSheet for faster simulator testing by intercepting keyboard events with Enter and Escape keys.
-
How To Center Content Within UIScrollView
Published:• 3 min readLearn the best approach to center content in UIScrollView using contentInset instead of layoutSubviews or setContentOffset for better zooming behavior.
-
UIAppearance for Custom Views
Published:• 4 min readLearn how to properly implement UIAppearance in custom views, including important gotchas about setter tracking and initialization patterns.
-
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.
-
NSURLCache Uses A Disk Cache As Of iOS 5
Published:• 3 min readDiscover how NSURLCache in iOS 5 now automatically implements disk caching to a SQLite database based on Cache-Control headers.
-
Moving On... Or How Waiting For A Visa Was The Best Thing That Ever Happened To Me.
Published:• 4 min readAfter months of waiting for a US visa, I share my journey from freelance to full-time indie developer and the creation of PSPDFKit.