Show full iAd between pages
Hi, we are trying to put iAd between some pages in Baker. If somebody could help us it would be great. You can see the discussion and some more details here:
https://github.com/nin9creative/baker/issues/27
Thanks in advance :)
Very cool, what have you done so far? If you're up for it, I think you can put in something to intercept on certain urls - within iOS.
@JackWS actually (as you can see in the discussion) we haven't done anything yet :( this is just an idea...
I've had a look at the code and the AdInterstitialAd class.
Theoretically, it should just be a matter of adding some UIViews among pages, to display the advertisements. This is not so easy in practice, though, as that would screw with the page counter and possibly with screenshot mode.
All in all, after a cursory glance at the code, I think it can be done. It's just a matter of catching and managing all the exceptions.
Perhaps the ads could be thought of as 'between' pages. That way it would not interrupt normal page indexing or page numbering. In the book.json file you could assign an array detailing what page(s) full screen adds would appear after. When processing the changePage code, the method could check to see if the ad should appear before the next page is displayed and present a UIView with the full screen ad. You may have to have an extra property to retain the page number before the ad is displayed to know what page to advance or return to when the user swipes on the ad to turn to the next book page.