开发者

reload existing UITableViewCell with different height and content

To reload cell height and content I have called:

[[self tableView]reloadRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:kSectionShoppingList]] withRowAnimation:UITab

This function calls the HeightForRow Data Source method, but it does not call CellForRowAtIndexPath data source method.

Is i开发者_如何学Got their default behavior or am I missing something?


Try reloadSectionAtIndexPath method.

UPDATE

You need to calculate height before you display cell. Like in heightForRowAtIndexPath.

Use this method to display variable height rows.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜