Codec ░ NSLog

376Variable length of accuracy of float in NSString

float f = 1.23456;

NSLog(@"%.2f", f);
NSLog(@"%.0f", f);
NSLog(@"%.0f", f);

1.23
1
1.23456

381Zero-Padding 305Converting float to string %4.2f 287[^//]NSLog 246writeToFile – quick file writing 218Obj-C, Shortcut: Boolean return value to String

287[^//]NSLog

Looking Projectwide for NSLog’s:

Shift-Apple-F: [^//]NSLog

All the NSLogs, which don’t have // infront of them.

376Variable length of accuracy of float in NSString 218Obj-C, Shortcut: Boolean return value to String

218Obj-C, Shortcut: Boolean return value to String

Turning Boolean 1, 0 into a more descriptive description:

NSLog(@”data1 is equal to data2: %@”, [data1 isEqualToData:data2] ? @”YES” : @”NO”);

376Variable length of accuracy of float in NSString 289Simulating Keyboard & Mouse Events. And Key-Modifier Events 287[^//]NSLog 275UIWebView – checking when user clicks a link 269Caching on Objective-C with NSURLCache