문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

Please read about IBOutlet and IBAction in the Cocoa Fundamentals Guide.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top