I'm new to SpriteKit and just published my first game. Now I would like to add banner ads to the game. However, I'm completely lost.
Most tutorials tell you to simply call
self.canDisplayBannerAds = YES;
in the viewDidLoad method. I'm doing that, and I also imported iAD.h and linked the required binaries. However, everytime I start the game it crashes and gives me the following error:
-[UIView presentScene:transition:]: unrecognized selector sent to instance 0x15e2dd00
Does anybody know a good tutorial or any ideas on how to correctly implement iADs into a Sprite Kit game? Apple Docs wasn't really helpful either.
SKView * skView = (SKView *)self.originalContentView;
I had something likeSKView * skView = (SKView *)[self size]
which caused the crash. – Showcase