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 ArticleThe 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
More Pages to Explore .....