As we've discussed before, the lack of type-safety in
NSUserDefaults can make it cumbersome to use. We've already seen different approaches to it, but I think this solution by Jean-David Gadina takes the cake. 🎂 Using mirroring and key-value observing in Swift, he wraps up
NSUserDefaults in a strongly-typed Preferences class – and he wrote an Objective-C version as well!
If you ever find UIKit controls annoying to use thanks to their extensive uses of target-action or delegation, this is the framework for you. Vinnie Hesener makes it possible to use closures to deal with so many of these situations, including
UIControl state changes, adding gesture recognizers, customizing text field behavior, and populating collection views.
Debugging is a skill, and like most skills it can only be developed through experience and a bit of luck. Brent Simmons explains how he fixed an error that has plagued Overcast since it first launched by looking at the stack trace and his understanding of the iOS SDK. Adopting Brent's approach would be useful to any developer because not everyone can debug via Twitter. 😝