这是我所有代码的荣耀:
[NSString stringWithFormat:@"Total Properties: %d", (int)[inArray count]];
这给我带来了一个 Xcode 5.1 的警告:
Values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead
好的,我有点困惑。这个值确实是一个32位整数,并且我将其转换为32位整数。那么它抱怨的NSUInteger是什么(我猜是计数),为什么这个转换不能解决它?