static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
UIImageView *cellBg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
cellBg.image = [UIImage imageNamed:@"cellBgLine"];
[cell addSubview:cellBg];
}
if ([arrData count] != 0) {
WalletList *objBean = (WalletList *)[arrData objectAtIndex:indexPath.row];
[cell.textLabel setFont:[UIFont fontWithName:@"Helvetika" size:12.0]];
cell.textLabel.numberOfLines = 1;
cell.textLabel.text = objBean.wtitle;
[cell.textLabel alignTop];
// cell.textLabel.text = [arrData objectAtIndex:indexPath.row];
}
return cell;
No comments:
Post a Comment