我在Xcode Project中有多個協議,它會給出這樣的錯誤。幫我 錯誤像: - >找不到'ButtonDelegate'的協議聲明你的意思是'CustomDelegate'? 由於提前找不到'xxxxx'的協議聲明;你的意思是'yyyyy'
委託頭文件
#import <UIKit/UIKit.h>
#import "Constant.h"
@protocol ButtonDelegate <NSObject>
-(void)ChatButtonClicked;
@end
@interface DonttreadonmeCell : UITableViewCell<UIGestureRecognizerDelegate,UITextViewDelegate>{
id <ButtonDelegate> Buttondelegate;
.h File
#import <UIKit/UIKit.h>
#import <Twitter/Twitter.h>
#import "JSONParsing.h"
#import "Facebook.h"
#import "DonttreadonmeCell.h"
#import "Constant.h"
@class DonttreadonmeCell;
@interface BookTextPeregraphselectedViewController : UIViewController<MFMailComposeViewControllerDelegate,FBSessionDelegate,FBRequestDelegate,ButtonDelegate,FBLoginDialogDelegate,FBDialogDelegate,JSONParsingDelegate,UITableViewDataSource,UITableViewDelegate,UIGestureRecognizerDelegate,UITextViewDelegate>{
我看不懂。發佈文字。 – 2013-09-21 05:19:08
@ H2CO3錯誤:無法找到'ButtonDelegate'的協議聲明你的意思是'CustomDelegate' –
你是否在導入協議聲明的.h文件? –