摘要: //GCD下载后清除缓存1 —(void)didReceiveMemoryWarning{2 [super didReceiveMemoryWarning];3 //清除缓存4 [self.cache removeAllObjectds];5 //取消下载6 [self.queue cancelAllObjects];7 [self.downloading removeAllObjects];8 } 阅读全文
posted @ 2013-08-03 14:36 wangzhenxiang 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1 //是否要显示分隔线2 tableView.separatorStyle = UITableViewCellSeparatorStyleNone;3 tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;4 5 //改变换行线颜色6 tableView.separatorColor = [UIColor blueColor];7 //设置tableView的头部位置的按钮或图片 UIImageView UIButton 8 self.tableView.tableHeaherView = [UIButton b 阅读全文
posted @ 2013-08-03 14:17 wangzhenxiang 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 // 设置cell的背景色2 UIView *bg = [[[UIView alloc] init] autorelease];3 bg.backgroundColor = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:1];4 cell.backgroundView = bg;1 // 设置cell选中的背景2 UIView *selectdBg = [[[UIView alloc] init] autorelease];3 selectdBg.backgroundColor = [UIColor colorWithRed:0 阅读全文
posted @ 2013-08-03 14:07 wangzhenxiang 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1 // 设置imageview的圆角半径2 UIImageView *imageView = (UIImageView *)[cell viewWithTag:tag];3 imageView.layer.cornerRadius = 10;4 imageView.layer.masksToBounds = YES;5 // 图片居中,而且限制在ImageView的bounds中6 imageView.contentMode = UIViewContentModeScaleAspectFit;7 // 接收触模事件8 imageView.userInteractionEnable... 阅读全文
posted @ 2013-08-03 13:59 wangzhenxiang 阅读(236) 评论(0) 推荐(0) 编辑