From what I understand I should always use self.property_name everywhere except in getter and setter when using property, but in case I declared @synthesis property_name=ivar does omit self.property equal using property_name alone ?
From what I understand I should always use self.property_name everywhere except in getter and
Share
I’m not following your question complete, but if you are asking does using the following:
mean that you could use both
self.property_nameor justproperty_namethe answer is no. If you wanted to use it without theselfyou would have to reference if via theivar.That is only true, of course, if you only declared the variable using
@propertyand@synthesizeand didn’t also include it as an ivar in the@interfacedeclaration