Sometimes when I program for the iPhone, I wonder when you have to allocate and initialize objects and when not to. When you are using UI controls, it seems as if you don't have to do so. Is this true and why?
(Assume that they have been declared in the .h of the view controller.)
Example:
label1.text = @"Hello";
vs
label1 = [[UILabel alloc] init];
label1.text = @"Hello";
Is this because I'm using Interface Builder? Would I have to do this if I were to write our my GUI in code?