How can I increase the space between the title and subtitle in UITableViewCell?
UITableViewCell
) for your custom cell.
update your table view class.
use your custom cell's identifier in cellForRowAtIndexPath
.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *simpleTableIdentifier = YOUR CUSTOM CELL's IDENTIFIER;
SimpleTableCell *cell = (SimpleTableCell *)[tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
if (cell == nil)
{
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"SimpleTableCell" owner:self options:nil];
cell = [nib objectAtIndex:0];
}
//configure your cell.
cell.YOURLABEL1.text=@"YOUR TEXT FOR LABEL 1";
cell.YOURLABEL2.text=@"YOUR TEXT FOR LABEL 2"
return cell;
}
thats It.