Showing posts with label synthesize. Show all posts
Showing posts with label synthesize. Show all posts
Monday, December 2, 2013
Automatikusan sythesized property accessor-ok
Ha egy class-nak van egy property-je amihez legalabb egy accessor method-ot eloallit a compiler (azaz nem irtunk sajat gettert vagy settert vagy readonly-nal getter-t), akkor magat a propertyt is automatikusan eloallitja (nem kell @synthesize az implementacioban). Ha viszont sajat gettert es settert irunk (vagy readonly-nal gettert) akkor nem lesz maga a property sem automatikusan eloallitva azaz kella a: @synthesize property = _property;
Labels:
accessor,
getter,
setter,
synthesize
Subscribe to:
Posts (Atom)