If I declare a property strong, like so:
@property (strong, nonatomic) UIView *iVar;
When I'm setting it, does it matter if I do
iVar = ...
orself.iVar = ...
? It seems that with ARC, they do the same thing.If I only declare the instance variable (not the @property), e.g.,
BOOL selected
, does that mean it's inferred to be__unsafe_unretained
(since there's no property specifying it to be strong), or must I explicitly specify that?
It seems like I may have answered my own questions above in answering ARC: How to release static variable?, but I'm still slightly confused on the above questions.
See Question&Answers more detail:os