views:

122

answers:

2

HEy all,

I have a question to share..Tried to find the solution in various posts but failed. So if you know the solution in any other post Kindly paste the link over here.

The question is

  1. "Can we change the click event of the (-) minus sign that appears when the table is in editmode".

  2. Can we change the image of the minus sign that appears when the table is in edit mode?

Thanks in advance...

+1  A: 

You can't change the minus sign image, but if you are using it to actually delete items then I would recommend that you keep it as it is anyway. The reason is that it is a well-known icon to iPhone users. If you want to represent delete in some other way, it may be potentially confusing.

That said, if you want the left button to represent something else, then you can create a custom table cell with an image on the left. That image can be anything you want then. You can display or hide the custom icon by overriding didTransitionToState:

Chris Garrett
Hey Chris Thanks for reply.I dont want to perform the deletion operation.. I just want to show the minus sign. which when clicked does nothing.. (not even change itself to (|) sign... And I have tried creating a custom cell but can u tell how we can change the width of the cell? In editing mode the cell itself changes its width.. i want that width by default. And simple minus image before the cell. Thanks
Suriya
A: 

I have a question Suresh, how you made the minus sign appear?

okayasu
set the editing property of table view to YES.tableview.editing=TRUE;Thats it.Thanks
Suriya