#import "BGReviewController.h"
@interface BGReviewController (protected)
@property (weak, nonatomic) IBOutlet UIImageView *backgroundImage;
@property (weak, nonatomic) IBOutlet UIButton *dislikeButton;
@property (weak, nonatomic) IBOutlet UIButton *likeButton;
@property (weak, nonatomic) IBOutlet UIButton *post;
@property (weak, nonatomic) IBOutlet UIButton *cancel;
@property (weak, nonatomic) IBOutlet UITextView *textView;
@end
然後我補充一下:我怎樣才能提高我試圖建立保護性
@synthesize backgroundImage = _backgroundImage;
@synthesize dislikeButton = _dislikeButton;
@synthesize likeButton = _likeButton;
@synthesize post = _post;
@synthesize cancel = _cancel;
@synthesize textView = _textView;
而且我得到了錯誤: /business/Dropbox/badgers/BadgerNew/BGReviewController.m:32:13:在類別'protected'中聲明的屬性不能在類實現中實現
我應該在該類別的實現文件中聲明合成,然後明確放置ivars嗎?