I am new in iPhone development and now I have simple question(may be not simple:). I have a UITableView
, and in that UITableView
I have for example 5 rows, every row has a UILabel
and UIButton
.
What I want to do is to delete one element from the array when my button is pressed. Button I create with tag, but that doesn't work. I do not want use didSelectRow
; I want to delete an element from the array only if my button was pressed. (For example, if the third button was pressed I want to delete the third element of the array. Using the standard delete button does not work for me.