ios - Chartboost delegate error -
i integrating chartboost sprite kit game , have integrated bridging files swift code. in app delegate have following:
func application(application: uiapplication, didfinishlaunchingwithoptions launchoptions: [nsobject: anyobject]?) -> bool { // override point customization after application launch. let kchartboostappid = "5554c8680d60255c6a0f4af4" let kchartboostappsignature = "1d0e271cd054c9a63473d2f1212ca33a2922a19f" chartboost.startwithappid(kchartboostappid, appsignature: kchartboostappsignature, delegate: self) chartboost.cachemoreapps(cblocationhomescreen) return true } class func showchartboostads() { chartboost.showinterstitial(cblocationhomescreen); } func didfailtoloadinterstitial(location: string!, witherror error: cbloaderror) { } the startwithid line gives me error cant invoke method these arguments ( string, string, appdelegate). used work fine on objective c code.. knows how fix this?
class appdelegate: uiresponder, uiapplicationdelegate, chartboostdelegate edit (from lalit's comment below)
in startwithappid delegate set self, have set class appdelegate delegate, done using:
chartboostdelegate(protocol)
Comments
Post a Comment