在控制台里打印controller的层级: po [UIViewController _printHierarchy]
#ifdef DEBUG
#define CLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define CLog(format, ...)
#endif
隐藏导航条:[self.navigationController setNavigationBarHidden:YES animated:YES];
在控制台里打印controller的层级: po [UIViewController _printHierarchy]
#ifdef DEBUG
#define CLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define CLog(format, ...)
#endif
隐藏导航条:[self.navigationController setNavigationBarHidden:YES animated:YES];
本文标题:常用小技巧
本文链接:https://www.haomeiwen.com/subject/xvuzhttx.html
网友评论