objective c - how to replace any view in UITableViewCell? (iphone) -



objective c - how to replace any view in UITableViewCell? (iphone) -

i have made tableview programatically.

in every cell have made button in that..

now want when press button of first cell..that cellone should replaced new view.

can tell me how that?

i mean when press button of cell no 1...only particular cell should replace new view not other cell

add flag in datasource corresponding each row (e.g in array utilize populate table)...

in cellforrowatindexpath method conditional cell content population.. i.e. if flag corresponding row set, add together view else add together button...

when press button, set flag corresponding row... , reload table view...

its pretty straight forward..

iphone objective-c uiview uitableview

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -