Adding a view (image view) in between two UITableViewCells

后端 未结 2 1192
予麋鹿
予麋鹿 2021-01-24 06:31

I have created a UITableView programatically. And i am loading it with data. I want to insert an advertisement Banner (clickable button which is equal to cell\'s he

2条回答
  •  天涯浪人
    2021-01-24 06:38

    As Duncan mentioned you could use cellForRowAtIndexPath and place a custom cell type for every 4th row. You can set two types of custom cells in your tableview by setting the identifier property. Ex. For every 4th row use the "ad" identifier cell.

提交回复
热议问题