In fact, yes!
You no longer need to declare the actual iVar.
In short, just leave this part: controlType varName;
Now you still need to explicitly โsynthesizeโ.
(As far as I can tell, they could automate this in the future. But for now, you need to โsynthesizeโ to create a setter and getter.)
You still need to free up memory - there really is no way to automate it, since memory processing is "real programming."
For any new readings, do not forget the self. part when using this property.
Plus, note that Xcode4 even has a new automatic thing. Just drag and drop from the interface designer to your .h file and it will do everything for you - try it!
In answer to your question with the inscription: IBOutlet MUST BE PROPERTY MUST - you can simply use the usual cheap iVar. On the other hand, if you want, you can use the property. Also: you can even use the new trick (2011) so you donโt bother to declare ivar, just use the property declaration and run IBOutlet there!
Fatie
source share