雨燕“SceneName”不符合协议ADInterstitialAdDelegate - SK斯威夫特

问题描述:

我cannotadd ADInterstitialAdDelegate上我的课它说,它不符合协议...雨燕“SceneName”不符合协议ADInterstitialAdDelegate - SK斯威夫特

import SpriteKit 
import AVFoundation 
import iAd 

var classicHScore: AnyObject? =  NSUserDefaults.standardUserDefaults().objectForKey("classicHighscore") 
var classicHScoreInt = classicHScore! as Int 
var interstitialAd = ADInterstitialAd() 

class SpeedGameScene: SKScene, SKPhysicsContactDelegate, ADBannerViewDelegate, ADInterstitialAdDelegate { 

不知道为什么我无法找到答案谷歌,但我敢肯定你brainiacs之一将有答案

我使用精灵套件

你忘了添加所需的委托的方法。如果发生此类错误,请检查the documentation of the Delegate并检查所需的方法。这些方法标有要求

class SpeedGameScene: SKScene, SKPhysicsContactDelegate, ADBannerViewDelegate, ADInterstitialAdDelegate { 
    func interstitialAdDidUnload(interstitialAd: ADInterstitialAd!) { 

    } 

    func interstitialAd(interstitialAd: ADInterstitialAd!, didFailWithError error: NSError!) { 

    } 
} 
+0

完美 - 它是漫长的一天忽略了部分 - 明星! – LukeTerzich 2015-02-09 22:55:17