预计发生types错误

所以我创build了这个方法:

- (void)addToViewController:(SecViewController *)controller didFinishEnteringItem:(NSString *)item;` <br> 

Xcode不断给我Expected a typeSecViewController * Expected a type错误。 那是什么意思? SecViewController不是一个types?

你必须声明SecViewController

 @class SecViewController; 

…在标题顶部。

注意:不要只是#import所有使用的标题。 这只会恶化您的标题依赖关系。