这是我的代码所有的荣耀:
[NSString stringWithFormat:@"Total Properties: %d", (int)[inArray count]];
Run Code Online (Sandbox Code Playgroud)
这给我一个Xcode 5.1警告:
Values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead
Run Code Online (Sandbox Code Playgroud)
好的,我很困惑.该值实际上是一个32位的int,我把它转换为32位int.那么这个NSUInteger抱怨的是什么(我假设的数量)以及为什么这个演员没有修复呢?
objective-c ×1