Quantcast
Channel: Vincent Gable's Blog » printf
Browsing latest articles
Browse All 2 View Live

How To Put a % in an NSString/NSLog/printf

%% is turned into a single % in a call to NSLog, or -[NSString stringWithFormat:], or the printf-family of functions. Note that %%format will become %format, even if %format usually prints an argument....

View Article



The Most Useful Objective-C Code I’ve Ever Written

Actually, it’s the most useful code I’ve extended; credit for the core idea goes to Dave Dribin with his Handy NSString Conversion Macro. LOG_EXPR(x) is a macro that prints out x, no matter what type x...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images