float f = 1.23456;
NSLog(@"%.2f", f);
NSLog(@"%.0f", f);
NSLog(@"%.0f", f);
1.23
1
1.23456
float f = 1.23456;
NSLog(@"%.2f", f);
NSLog(@"%.0f", f);
NSLog(@"%.0f", f);
1.23
1
1.23456
Turning Boolean 1, 0 into a more descriptive description:
NSLog(@”data1 is equal to data2: %@”, [data1 isEqualToData:data2] ? @”YES” : @”NO”);
287[^//]NSLog
Looking Projectwide for NSLog’s:
Shift-Apple-F: [^//]NSLog
All the NSLogs, which don’t have // infront of them.
comment find NSLog regexp search
376Variable length of accuracy of float in NSString 218Obj-C, Shortcut: Boolean return value to String