Jig*_*h B 0 iphone protocols ios xcode4.5
我在 Xcode 项目中有多个协议,它会给出这样的错误。帮助我错误:-> 找不到“ButtonDelegate”的协议声明,您的意思是“CustomDelegate”吗?提前致谢
委托头文件
#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>{
Run Code Online (Sandbox Code Playgroud)
我在导入文件的顶部声明了我的协议声明部分……感谢上帝。
@protocol ButtonDelegate <NSObject>
-(void)ChatButtonClicked;
@end
#import <UIKit/UIKit.h>
#import "Constant.h"
Run Code Online (Sandbox Code Playgroud)
像这样
| 归档时间: |
|
| 查看次数: |
2332 次 |
| 最近记录: |