我有需要接受Byte[]
的方法:問:如何在iOS中聲明Byte []的屬性?
在.h
文件:
- (void)setPC1_APPKEY:(Byte[])pC1_APPKEY;
在.m
文件:
我想擁有一個Byte[]
屬性來保存它。
但是,當我宣佈這樣的特性:
@property (nonatomic, assign) Byte PC1_APPKEY[];
它顯示錯誤:property cannot have array or function type'Byte[]'
所以我將它的屬性是這樣的:
{
Byte PC1_APPKEY[];
}
這表明錯誤:Field has Incomplete type ‘Byte[]’
如何獲得Byte[]
?謝謝。
使用字節*,一切都是指針。 –