首页 > 代码库 > NSInteger打印以及字符串的转换

NSInteger打印以及字符串的转换

1 You can also use %zd (NSInteger) and %tu (NSUInteger) when logging to the console.2 3 NSInteger integer = 1;4 NSLog(@"first number: %zd", integer);5 6 NSUInteger uinteger = 1;7 NSLog(@"second number: %tu", uinteger

 

NSInteger打印以及字符串的转换