开发者

UITableViewCells with different cell sizes

Is it possible to have a UITableView that has a fixed height for all cells, except for the cell at the top (index 0)?

If so, h开发者_StackOverflow中文版ow is this possible?


You have to set the tableView’s delegate to an object that responds to tableView:heightForRowAtIndexPath:.

If your topmost cell does not have to be a UITableViewCell, you can also use a section header instead of a cell. See same protocol.


I don't know about your app, but you might want to have a look at tableHeaderView instead of trying to change the top row. Here's a link

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜