ios iphone em协议未声明

时间:2014-01-29 08:04:19

标签: ios objective-c

我在CountryDetailsViewController.h

中有这个
@class CountryDetailsViewController;
@protocol CountryDetailsViewControllerDelegate <NSObject>

-(void) didCancel: (CountryDetailsViewController *) controller;
-(void) didDone: (CountryDetailsViewController *) controller;

@end

@interface CountryDetailsViewController : UITableViewController
@property (nonatomic, weak) id <CountryDetailsViewControllerDelegate> delegate;
-(IBAction)didCancel:(id)sender;
-(IBAction)didDone:(id)sender;
@end

CountriesViewController我有这个:

#import <UIKit/UIKit.h>
#import "CountryDetailsViewController.h"

@interface CountriesViewController : UITableViewController<em><CountryDetailsViewControllerDelegate></em>

@property (nonatomic, strong) NSMutableArray * _countires;

@end

xcode给了我这个错误:

enter image description here

1 个答案:

答案 0 :(得分:4)

摆脱HTML标记:

@interface CountriesViewController : UITableViewController <CountryDetailsViewControllerDelegate>