hello
programming novice apologies if questions daft. have experience programming vba, think of confusion comes when trying reconcile how things works how understand works in vba.
trying understand role properties play. in vba, understanding of property sits on top of privately declared variable in order exercise control , validation on assignment of value underlying private variable. therefore, private variable has declared , getters , setters written deal assignment.
when reading how in xcode (or should objective c?) doesn't seem underlying variable has declared - if put appropriate @property code in header , @synthesize code in implementation file, underlying variable presumably must created in background?
however, when reading setting view controller necessary outlets, declare iboutlet objects , write them out @property syntax in order generate getters setters, in case variables declared in addition property code.
can explain role of properties , how work please, first of all, in straightforward manner possible?
thank in advance.
first of all, xcode ide, yeah, objective-c language.
properties public objects, if declare property in header, open them other controllers manipulate them (depending on options), there no need declare ivar & redo in properties, me , myself find highly irritating, because people forgot difference between self.nameofobject or nameofobject, 1 refer property while other ivar, highly confusing code read.
prefer make property (you can make these private if declare them in private interface in m file). because @synthesize generates getter/setter.
short introduction, think phoneydeveloper or can give more in depth explenation..
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment