声明我创建了一个协议找不到协议声明时协议在它自己的.h文件中
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// Defines the protocol that must be implemented to be a delegate for UCMapviewController
@protocol UCMapviewDelegate <NSObject>
@required
- (void)pushMapviewRight;
@end
当我去到新的文件 - >协议,有一个提示,询问目标。我检查我的项目。但是当我单击我的项目中的protocol.h文件并查看文件检查器时,在“目标成员”中,我的项目未选中,我无法检查它。
当我把协议在我viewControllers之一(例如)的头文件我没有得到这个错误。我必须在其他地方导入协议吗?
什么是错的?非常感谢帮助! THX
http://stackoverflow.com/questions/7661334/why-are-the-targets-memberships-checkboxes-disabled-for-all-files – jajo87