摘要: 经常在源码中看到类似于如此定义debug模式#if DEBUG#define NSLog(FORMAT, ...) fprintf(stderr,"\nfunction:%s line:%d\n%s\n", __FUNCTION__, __LINE__, [[NSString stringWit... 阅读全文
posted @ 2015-12-08 18:01 风语菡 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 在一些源码中看到有人用[classname new]创建和初始化对象,但是我们大多数都用[[classname alloc] init],所以就很好奇两者之间的区别,通过查看一些资料http://stackoverflow.com/questions/11256228/what-is-the-d... 阅读全文
posted @ 2015-12-08 16:48 风语菡 阅读(829) 评论(0) 推荐(0) 编辑