FTP를 통해 다운로드 한 NSMutableArray가 있습니다. 배열의 요소는 CFFTPStream resource constants이며 CFStringRef 유형입니다.(목표 C) NSMutableArray에서 CFstringRef 가져 오기
"kCFFTPResourceName"상수로부터 String을 생성하고 싶습니다. 그러나 Objective C와 iphone 개발에 익숙하지 않은 나는 고투하고있다. 내가했던
모두가 같은 크기, 오류가 던지는 ARC 결과는 :
2013-01-03 15:31:44.874 Street Light Reporter[1382:11603] -[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x6e1e930
2013-01-03 15:31:44.875 Street Light Reporter[1382:11603] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x6e1e930'
내 가장 최근의 시도입니다 : CFStringRef * C = [objectAtIndex AR : 4];
Incompatible pointer types initializing 'CFStringRef *' (aka 'const struct __CFString **') with an expression of type 'id'
및
Implicit conversion of an Objective-C pointer to 'CFStringRef *' (aka 'const struct __CFString **') is disallowed with ARC
나는 타입 캐스팅의 모든 종류의 시도 (__bridge)와 이것 저것 만지작하고 난 운이 없었을 : 는 다음과 같은 두 가지 이유로 일을 나던.
아무도 나를 도와 줄 수 있습니까? 어떤 도움을 주시면 감사하겠습니다.
힌트 : 원본 JSON 문자열 (적어도 처음 50 자 정도) 또는 JSON 디코더에서 가져온 개체의 NSLog를 표시하십시오. –