OC:头文件/全局文件
#ifdef DEBUG
#define YWLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String] )
#else
#define YWLog(...)
#endif
封装printf(C系语法打印)能全部输出。方便调试查看