IBOutlet on properties and exposition of the class

Posted by Espuz on Stack Overflow See other posts from Stack Overflow or by Espuz
Published on 2010-06-10T08:37:30Z Indexed on 2010/06/10 8:42 UTC
Read the original article Hit count: 215

Apple, for memory management issues, recommend defining outlets on properties, not in the attribute declaration. But, as far as I know, declaring properties exposes the class to external classes, so this could be dangerous.

On UIViewController we have the main view definition and the logic, so MVC is slightly cheated in this cases.

What is the beteer approach, Apples's recommendation for memory-management or armored classes?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about memory-management