How to get a compiler warning when an IBOutlet is disconnected
- by Vincent Gable
How can I have Xcode warn me if an IBOutlet of one of my objects is not hooked up to anything in a NIB?
I can check that outlets are connected at runtime by adding assert(ofEveryOutlet); in awakeFromNib or viewDidLoad. But it's not as useful, or reliable, as having the compiler do the checking for me.