你可以看到这段代码:
select [Item No_], [Desc], [Bin Code], sum([Quantity])
from dbo.[whe] w
inner join dbo.[Item] i
on w.[Item No_] = i.[Item No_]
group by [Item No_], [Desc], [Bin Code]
此代码:@property(nonatomic,assign)EgCoreVClrNavClrDelegate委托; //错误
Xcode抛出错误:未知类型名称' EgCoreVClrNavClrDelegate' ;
为什么声明存在问题?
答案 0 :(得分:2)
您需要定义委托属性,如下所示:
@property (nonatomic, weak) id<EgCoreVClrNavClrDelegate> delegate;
在你班上这样称呼它:
// Notify delegate if requested
if (_delegate && [_delegate respondsToSelector:@selector(bugReporterWillShowForm:)]) {
[_delegate yourProtocolMethodWithOrWithoutParams];
}
答案 1 :(得分:0)
delegate
必须输入object that conforms to protocol
@property (nonatomic, weak) id<EgCoreVClrNavClrDelegate> delegate;
通常您希望该属性为weak
。