开发者

UITableView, making first cell custom cell and others normal cells

开发者 https://www.devze.com 2023-03-15 17:52 出处:网络
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 sam

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

精彩评论

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