I는 다음과 같은 출력테스트 목표 -C에서 널위한
images in definitionDict (
"/some/brol/brol.jpg"
)
NOTNULL
images in definitionDict <null>
NOTNULL
I는 이미지 어레이는 상기 제 2 케이스를 이해하지 제공 루프
NSArray * images = [definitionDict objectForKey:@"Images"];
NSLog(@"images in definitionDict %@", images);
if (!images)
NSLog(@"NULL");
else
NSLog(@"NOTNULL");
다음 코드를 가지고 없는. 내 검사에서 왜 이것이 올바르게 감지되지 않습니까? 어떻게 이러한 문제를 디버깅 할 수 있습니까?
감사합니다. – madewulf