Objective-C隐式转换将整数精度'NSUInteger'(aka'unsigned long')转换为'int'警告
我正在做一些练习,并收到警告,指出: 隐式转换将失去整数精度:将'NSUInteger'(aka'unsigned long')转换为'int' #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { @autoreleasepool { NSArray *myColors; int i; int count; myColors = @[@"Red", @"Green", @"Blue", @"Yellow"]; count = myColors.count; // <<< issue warning here for (i = 0; i < count; i++) NSLog (@"Element %i = %@", i, …