I search some documentation, and tried Xcode and AppCode. But I'm still uncertain about few things. So can somebody clarify me:
If I have property named foo, should I have private instance variable named
_foo
orfoo
?If I dont't create a private instance variable, just syntetize it. Then what variable should I try to access
self->foo
orself->_foo
?
I have seen both approaches and both worked so I'm curious if there is any coding rules or conventions for this because I didn't find any.
Note: I'm not interested in @synthetize foo=_foo
;