Ads in a Scene?
Is there a way (or a hack) to support advertisements in a scene class? I want to show a banner ad at the top or bottom of the screen, how would I go about doing this?
LawAbidingCactus last edited by
Currently I don't think there's a way to do this inside of Pythonista. You would have to export your project to XCode and then put ads in from there.
JonB last edited by
- download your banner image from a website, using urllib, urllib2, or requests.
- display it in your scene using scene.image
Of course, anyone could simply remove that line of code an run your app without ads, but presumably you are talking about distributing your app to the App Store, otherwise why bother?
I think this could work for still images without interactivity - but would it work for iAds/Admob/etc?
There has to be some kind of way. I know it would be much easier using UI, but I am not using the UI module.
How would I go about placing ads over Pythonista in XCode?
Is it possible to put a banner ad over a standalone app in XCode?
techteej last edited by
@Shambhala There is currently no way to do this in Pythonista. You'd have to learn Objective-C and C.
@techteej Yeah, that's what I expected. How do I do it in Objective-C?
bashedcrab last edited by
You can publish Swift apps now, so you can avoid Objective-C if you like.
If you mainly write games (like me), you can't beat ray wenderlich for iOS tutorials.