开发者

How to add customized cell in tableview when user selects cell

I want to add my customized tableviewcell in my tableview when user selects a cell I have some buttons on that customized cell and want to giv开发者_Go百科e user option as soon he selects a cell.

Any suggestions and guidance to move on from here?


you have to use customize cell when cell is created and change the image of the cell when it will selected.


Create two custom cells, one for the normal rows and other for the required row. When the user touches a particular cell, you can record it's indexPath and reload the tableView. When the cellForRowAtIndexPath is called the second time after tableView reload, you can identify the row with the flag set earlier. You can then create a new cell for it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜