NSImage class reference에는 방법 initWithData
가 있지만 xCode가 존재하지 않는다고 말하는 이유는 무엇입니까?NSImage initWithData를 찾을 수 없습니까?
NSData *imgData = [[imageView image] TIFFRepresentation];
fotoImg = [NSImage initWithData:imgData];
그리고 난 경고를 얻을 :
나는 다음과 같이 사용
Class method '+initWithData:' not found (return type defaults to 'id')
왜 이런 일이 있습니까?
'[[NSImage alloc] initWithData..' –