Quote:
Originally Posted by martijnaikema
Hi all,
I have a question about adding rows to an UITableView. I have a mutable array called newsFeeds which is populated through a few RSS-feeds that I have defined in my app. The entries in this array fill the tableview of my app. Everything works fine so far.
What I want to do is to insert new rows in this tableview which contain ads (for example from AdMob). I want every 10th row to be an ad-row. So after populating the tableview with the array I want to add 1 extra row (1st row) and 1 extra row for every 10 newsFeed.
I have tried many different things but I haven't succeeded so far. Can anyone help me with this?
|
SO what you can do is just check for a string lets call it adString place it in the array and every row you need to see the ad at just check for the string and if its equal to adString insert custom cell that displays the ad