标签:tableview turn anim table pre for 修改字体 tco ret
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ ProductTypeCell *mProductTypeCell = [tableView dequeueReusableCellWithIdentifier:productTypeindterfier]; mProductTypeCell.selectedBackgroundView = [[UIView alloc] initWithFrame:mProductTypeCell.frame]; mProductTypeCell.selectedBackgroundView.backgroundColor = [UIColor whiteColor]; // 另外修改字体的颜色 mProductTypeCell.typeLable.highlightedTextColor = RGB(0x00bdbe); ProductListModel *mProductListModel = _dataArray[indexPath.row]; mProductTypeCell.typeLable.text = [NSString stringWithFormat:@"%@",mProductListModel.productTypeName]; //默认中
[_productTableView selectRowAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0] animated:YES scrollPosition:UITableViewScrollPositionTop]; if ([_productTableView.delegate respondsToSelector:@selector(tableView:didSelectRowAtIndexPath:)]) {
[_productTableView.delegate tableView:_productTableView didSelectRowAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]]; } return mProductTypeCell; }
标签:tableview turn anim table pre for 修改字体 tco ret
原文地址:http://www.cnblogs.com/wq-gril/p/6148619.html