iphone debug

在 .pch中加入

 

#ifndef __OPTIMIZE__

# define NSLog(...) NSLog(__VA_ARGS__)

#else

# define NSLog(...) {}

#endif

 

#define LOG_INFO NSLog(@"File: %s, line %d [%@ ,%s]",__FILE__ , __LINE__,[[self class] description], _cmd);

 

在 target , build 里面 搜preprocessor macros . 里面加入  __OPTIMIZE__

你可能感兴趣的:(iPhone)