ios - Getting an error with Interstitial Ads (iAd and Spritekit) -


i keep getting error within section of code:

// interstitial iad -(void)showfullscreenad {     // check if requesting ad     if (requestingad == no) {         interstitial = [[adinterstitialad alloc] init];         interstitial.delegate = self;         self.interstitialpresentationpolicy = adinterstitialpresentationpolicymanual;         [self requestinterstitialadpresentation];         nslog(@"interstitialadrequest");         requestingad = yes;     } }  -(void)interstitialad:(adinterstitialad *)interstitialad didfailwitherror:(nserror *)error {     interstitial = nil;     requestingad = no;     nslog(@"interstitialad didfailwitherror");     nslog(@"%@", error); }  -(void)interstitialaddidload:(adinterstitialad *)interstitialad {     nslog(@"interstitialaddidload");     if (interstitialad != nil && interstitial != nil && requestingad == yes) {         //[interstitial presentfromviewcontroller:self];         //[interstitial presentinview:self.view] // error on line         nslog(@"interstitialaddidpresent");         if (interstitial.loaded) {             [self requestinterstitialadpresentation]; //i error on line         }     } }  -(void)interstitialaddidunload:(adinterstitialad *)interstitialad {     interstitial = nil;     requestingad = no;     nslog(@"interstitialaddidunload"); }  -(void)interstitialadactiondidfinish:(adinterstitialad *)interstitialad {     interstitial = nil;     requestingad = no;     nslog(@"interstitialaddidfinish"); } 

its particular line:

[self requestinterstitialadpresentation]; 

this error i'm getting , have no idea line needs changing error stops:

-[uiview setshowsfps:]: unrecognized selector sent instance 0x146e241a0 

ive gotten error in past when working same sort of code, appears when start trying implement interstitial ads. seem having lot of trouble trying implement interstitial ads , have read lot of tutorials. have no idea i'm doing wrong :( can please help?

regards,

ryan

setshowsfps: method on skview, not on uiview.

although don't see cause in code posted, error means uiview instance being passed method expects skview. set exception breakpoint try figure out where. it's possible isn't code that's triggering call.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -