以下是我在《荣耀》中的代码:
[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位的int,我将它转换为32位的int.那么它抱怨的是什么(我假设的计数),为什么这个转换不能修复它?