baker icon indicating copy to clipboard operation
baker copied to clipboard

Show full iAd between pages

Open morands opened this issue 14 years ago • 4 comments

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 :)

morands avatar Feb 28 '12 12:02 morands

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.

ghost avatar Mar 04 '12 03:03 ghost

@JackWS actually (as you can see in the discussion) we haven't done anything yet :( this is just an idea...

morands avatar Mar 04 '12 10:03 morands

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.

Simbul avatar Mar 19 '12 22:03 Simbul

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.

ducky007 avatar Jan 01 '13 20:01 ducky007