开发者

iPhone - UITableViewCell - Change NIB CustomCell by another NIB CustomCell when select a row?

开发者 https://www.devze.com 2023-01-02 14:03 出处:网络
I have one UITableView with 开发者_开发问答a custom cell loaded from a nib file, it works fine.

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.

0

精彩评论

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