我有一点问题;我有这个协议中定义为这样如下:iPad协议问题
@protocol someProtocol <NSObject>
- (void) changedStoryForIndexPath: (NSIndexPath *) indexPath;
@end
我有它在一个名为“ListViewController.h
”文件中定义,逻辑上我不得不进口头像其他文件:#import "ListViewController.h"
然后在我的@interface
宣布该协议在协议标签如<someProtocol>
对不对?我什么时候这样做然后编译,编译器(在Xcode 4.0和3.2.4上)告诉我它找不到协议声明。你可以看到这里的错误:http://www.freeimagehosting.net/uploads/5ff0c99bf7.png
谢谢你们!
它通常只是运作良好。也许问题出在别的地方 – vodkhang 2010-08-06 07:52:10
显示你的代码在哪里使用它。 – JeremyP 2010-08-06 10:07:10