开发者

UITableView, making first cell custom cell and others normal cells

So, I was wondering what is the best way to make it so that the first cell开发者_高级运维 is custom cell and the others are normal cells. In the past I have only made tableViews with all cells the same. Thanks!


In -tableView:cellForRowAtIndexPath: of your data source, you can return any kind of cell you like. So you should just check the index path and return a different cell for the first cell.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜