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

 

posted @ 2014-12-17 13:07  糊涂人  阅读(1523)  评论(0编辑  收藏  举报