2016年3月18日

去除NsLog()方法的前缀信息

摘要: 添加宏定义 #define NSLog(FORMAT, ...) \printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__]UTF8String]); 阅读全文

posted @ 2016-03-18 15:43 Mr_Deng 阅读(294) 评论(0) 推荐(0) 编辑

xcode中忽略选择器的警告的方法

摘要: 添加以下两句 #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks” 阅读全文

posted @ 2016-03-18 15:43 Mr_Deng 阅读(116) 评论(0) 推荐(0) 编辑

解决关于cell重用机制导致数据显示错乱的三种办法

摘要: 方法1 将获得cell的方法从- (UITableViewCell*)dequeueReusableCellWithIdentifier:(NSString*)identifier 换为-(UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *) 阅读全文

posted @ 2016-03-18 15:41 Mr_Deng 阅读(893) 评论(0) 推荐(0) 编辑

导航