Can someone explain this Objective C @property syntax?
-
29-04-2021 - |
Question
Reading over some example Objective C code just now.
@property (nonatomic, strong) IBOutlet UILabel *descriptionLabel;
I understand that here we're declaring a property named descriptionLabel. The property has two attributes: nonatomic and strong.
What I don't understand is there are two type definitions ... IBOutlet UILabel ...
Can anyone explain why and what the implications are of two type definitions?
La solution
IBOutlet is #define'd to be a "empty". This is basically used as an indicator by Interface builder to indicate properties that can be set.
Autres conseils
Please read about IBOutlet and IBAction in the Cocoa Fundamentals Guide.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow