常用小技巧

在控制台里打印controller的层级: po [UIViewController _printHierarchy]

#ifdef DEBUG

#define CLog(format, ...) NSLog(format, ## __VA_ARGS__)

#else

#define CLog(format, ...)

#endif

隐藏导航条:[self.navigationController setNavigationBarHidden:YES animated:YES];

你可能感兴趣的:(常用小技巧)