change the width table view cell and used one image for two cell

60 Views Asked by At

How can I use single image for two cell as shown in the image

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

You can place uibutton instead of your labels as compromise. (on the image below you can see how to do that)

enter image description here Add your navigation logic as buttons' selectors in

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:<#@"reuseIdentifier"#> forIndexPath:indexPath];

    // Configure the cell...

// add action manually for your button
    cell.FirstSegueButton addTarget:self action:@selector(FirstSegueButton:) forControlEvents:UIControlEventTouchUpInside];

    return cell;
}