iphone - Edit a boolean value on click on a button at customised table view cell -


i have table view customized cell. each cell contains button added contentview addsubview. want update boolean value in database table regarding row of button clicked.

how should index of row button clicked when click on button not select row on button exist .

maybe set tag of uibutton row of tableview ?

[ cell settag:<#(nsinteger)#> ]; 

then when tap occured, tag (from sender cast uibutton*), transform in nsinteger , can change bool in database ^^

if have more 1 section, trick doing tag = section * 100 + row.

good luck !


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -