您的位置:首页 > 其它

Tableview 默认选中第一行以及选中背景自定义

2015-10-12 16:50 225 查看
//默认选中第一行

NSIndexPath *firstPath=[NSIndexPath indexPathForRow:0 inSection:0];

[_firstTableView selectRowAtIndexPath:firstPath animated:YES scrollPosition:UITableViewScrollPositionTop];

//选中背景自定义
cell.selectedBackgroundView=[[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"cell_selected_bg"]]autorelease];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: