老是有這樣的warning丹诀,今天發(fā)現(xiàn)云信對NSInteger用的%zd,以前沒見過翁垂,遂網(wǎng)絡之忿墅,在stack overflow得到了解答
You can also use%zd(NSInteger) and%tu(NSUInteger) when logging to the console.
NSInteger integer = 1;
NSLog(@"first number: %zd", integer);
NSUInteger uinteger = 1;
NSLog(@"second number: %tu", uinteger);