我用下面的代碼來定義我的C陣列(除警告偉大的工程):數組c與財產的目標C
上的.h文件:
@interface memory : NSObject
{
int places[60];
int lastRecordSound;
}
@property int *places;
在
然後我.m
我不是同步它(和它的作品),但如果我嘗試同步它喜歡:
@synthesize places;
我得到錯誤:
type of preperty "places does not match type of ivar places (int[60])
,如果沒有,我得到WARNNING:
auto synthesized property places will be use synthesized instance variable _places...
那麼,什麼是定義該C數組的最佳方式?(是的,我需要ç..)
'@ synchronized'和'@ synthesize'是兩個不同的關鍵字。 – 2012-10-20 10:45:59
我的意思是綜合!對不起 – user1280535