I know it's often advisable to use the @property
accessors, and I know it's important to use self.myView = x
instead of mView = x
, but:
Isn't
myView.frame
sufficient? The AtomicElementFlippedView.m file in TheElements hasself.wikipediaButton.frame=buttonFrame;
. Shouldn't I leave outself
if I'm getting/setting a property of my ivar and not the ivar itself?It also does
[self.wikipediaButton addTarget:...];
. But shouldn't I leave outself
here as well? Shouldn't I always call a function on the ivar, not the property? I.e.,[wikipediaButton addTarget:...];
Thanks!
Matt