标签:io color os sp for strong on bs cti
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
// 自定义cell点击背景
cell.selectedBackgroundView =
[[UIViewalloc] initWithFrame:cell.frame];
cell.selectedBackgroundView.backgroundColor = RGBCOLOR(194, 194, 194);
// 默认选中第一行 只执行一次(否则有BUG)
if (!isRuned) {
NSIndexPath *firstPath = [NSIndexPathindexPathForRow:0inSection:0];
[m_tableViewselectRowAtIndexPath:firstPath animated:YESscrollPosition:UITableViewScrollPositionTop];
isRuned = YES;
}
标签:io color os sp for strong on bs cti
原文地址:http://www.cnblogs.com/liman1990/p/4126601.html