2013-03-20 58 views
0
#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吗?

回答

1

更换

@interface BGReviewController (protected)

随着

@interface BGReviewController()