Are @property's necessary for Interface Builder?

Posted by Rits on Stack Overflow See other posts from Stack Overflow or by Rits
Published on 2011-01-02T18:06:26Z Indexed on 2011/01/02 18:53 UTC
Read the original article Hit count: 227

In my UIViewController subclass, I have 3 UIView's with each a @property as an IBOutlet. I do not use these properties at all in my code. The views get instantiated as soon as the view controller is created and they are deallocated when the view controller is deallocated.

I was thinking; can't I just remove the @property's? I did, and I could still connect my instance variables (with IBOutlet) in Interface Builder.

So my question now is; is there any use for properties in combination with Interface Builder, or is it OK to leave them out? Is it required for some memory management or something? Or are they really just for use in your own code?

And if I do leave them out, do I still need to release them in dealloc?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c