NSLog Release

//将下面的代码插入到pch文件中即可
#ifndef __OPTIMIZE__
# define NSLog(…) NSLog(__VA_ARGS__)
#else
# define NSLog(…) {}
#endif

NSLog打印格式:

%@          对象    
%d, %i      整数    
%u          无符整形    
%f          浮点/双字    
%x, %X      二进制整数    
%o          八进制整数    
%zu         size_t    
%p          指针    
%e          浮点/双字 (科学计算)
%g          浮点/双字    
%s          C字符串    
%.*s        Pascal字符串    
%c          字符    
%C          unichar    
%lld        64位长整数(long long)    
%llu        无符64位长整数    
%Lf         64位双字  
原文地址:https://www.cnblogs.com/Bob-wei/p/4525598.html