iPhone - UITableViewCell - Change NIB CustomCell by another NIB CustomCell when select a row?
I have one UITableView with 开发者_开发问答a custom cell loaded from a nib file, it works fine.
When I select a row(named CustomCell1), It is possible to load another CustomCell2 and replace CustomCell1 with it?
I guess I have to use didSelectRowAtIndexPath() but I don't know how.
Any ideas?
Thanks.
You can use set a "selected" iVar somewhere else, then reload the cell. if it's selected, load the selected nib. You are probably better off having both views in the same cell and swap them with a fade transition though.
精彩评论