과 함께 허용되지 않습니다. errormessage가 표시됩니다. 'int'에서 'NSNumber *'로의 암시 적 변환이 ARC와 함께 허용되지 않습니다.iOS int의 NSNumber 로의 암시 적 변환이 다음 코드에서 ARC
내가 잘못하고있는 것은 무엇입니까?
<pre>
<code>
NSDictionary *results = [jsonstring JSONValue];
NSNumber *success = [results objectForKey:@"success"]; // possible values for "success": 0 or 1
if (success == 1) { // ERROR implicit conversion of int to NSNumber disallowed with ARC
}
</code>
</pre>
도움이나 힌트를 보내 주셔서 감사합니다!
안부, 다니엘
감사합니다. 그것은 운동했다. – Raja