Search code examples
iphoneuitableviewediting

editing style for custom UITableViewCell


how do i set editing style for custom UItableviewcell like this image.alt text

this is shopping cart view ,so i am gonna have many UITableViewCell, out of other fields only Qty field is going to be editable. thanks


Solution

  • The cell above looks like a custom button. What you can do is to add two UIButtons to a subclass of UITableViewCell, as well as a UITextField, and add event handling code for clicking the UIButtons to update the quantity. Since you can use an image for UIButtons achieving the above look shouldn't be difficult.