Saturday February 18, 2012

Time To Rethink Your Class Design

Matthijs Hollemans gives a writeup on keeping your App Delegate lean and free of cruft, unlike the way the old Xcode templates used to do.

So if you feel tempted to write,

[UIApplication sharedApplication].delegate

anywhere in your code, then it’s time to rethink your class design.