我正在学习 Objective-C,我知道 NSLog 可以打印出来,但是我迷失了这个 %-20s %-32s。
这个-20s和-32s在这里做什么
-(void) list
{
NSLog (@"======== Contents of: %@ =========", bookName);
for ( AddressCard *theCard in book )
NSLog (@"%-20s %-32s", [theCard.name UTF8String],
[theCard.email UTF8String]);
Array Objects 339
NSLog (@"==================================================");
}
@
====================================
| |
| Tony Iannino |
| tony.iannino@techfitness.com |
| |
| |
| |
| O O |
====================================