最佳答案
NSInteger myInt = 1804809223;
NSLog(@"%i", myInt); <====
The code above produces an error:
Values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead
The corrected NSLog message is actually NSLog(@"%lg", (long) myInt);. Why do I have to convert the integer value of myInt to long if I want the value to display?