[英]Why use ivars for IBOutlets instead of properties?
我剛開始從事一個新項目。 它有很多舊代碼,我發現了以下代碼
@interface WLLeftSideViewController : UIViewController {
@private
__weak IBOutlet UIButton *_signInButton;
__weak IBOutlet UIButton *_signOutButton;
__weak IBOutlet UILabel *_nameLabel;
__weak IBOutlet UILabel *_emailLabel;
__weak IBOutlet WLLeftSideMenuView *_tableView;
__weak IBOutlet UIButton *_settingsButton;
__weak IBOutlet NSLayoutConstraint *_heightConstraint;
}
我有幾個疑問:
謝謝
這里的關鍵詞是遺產
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.