小工具

作者: 昵称输入 | 来源:发表于2016-07-27 14:51 被阅读0次

1:一句话移除父视图所有的子视图

[view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];

2:详细打印

#ifdef DEBUG

# define LWXLog(fmt, ...) NSLog((@"[文件名:%s]\n" "[函数名:%s]\n" "[行号:%d] \n" fmt), __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__);

#else

# define LWXLog(...);

#endif

相关文章

网友评论

      本文标题:小工具

      本文链接:https://www.haomeiwen.com/subject/whcijttx.html