草庐IT

ReformerProtocol

全部标签

ios - .h 中没有名为 'ReformerProtocol' 的类型或协议(protocol),但 .m 工作正常

我有一个swift协议(protocol):importFoundation@objcprotocolReformerProtocol{funcreformDataWithManager(apiManager:FSAPIClient)->NSDictionary}在我的ObjectiveC.m中,如果我定义如下方法:-(NSDictionary*)fetchDataWithReformer:(id)reformer{}它工作正常,但如果我在.h文件中声明此方法:-(NSDictionary*)fetchDataWithReformer:(id)reformer;错误是:Notypeor