Chartboost + Swift + Xcode 6.3:didFailToLoadInterstitial 给出语法错误
Chartboost + Swift + Xcode 6.3 : didFailToLoadInterstitial giving syntax error
我在 Xcode 6.3 中使用了下面的 chartboost swift 代码,但 didFailToLoadInterstitial 行出现错误。我在 Xcode 6.2 中没有这个问题。如何在 Xcode 6.3 中解决这个问题?
func applicationDidBecomeActive(application: UIApplication)
{
let kChartboostAppID = "5472ef8f04b01601a1a5814c";
let kChartboostAppSignature = "5b6222426e68cda48669a1d4d8246d4c3d20db9c";
Chartboost.startWithAppId(kChartboostAppID, appSignature: kChartboostAppSignature, delegate: self);
Chartboost.cacheMoreApps(CBLocationHomeScreen)
}
class func showChartboostAds()
{
Chartboost.showInterstitial(CBLocationHomeScreen);
}
func didFailToLoadInterstitial(location :CBLocation, withError error: CBLoadError)
{
}
这为我在 Chartbeat SDK 5.2.0 上构建:
func didFailToLoadInterstitial(location: String!, withError error: CBLoadError) {
}
我在 Xcode 6.3 中使用了下面的 chartboost swift 代码,但 didFailToLoadInterstitial 行出现错误。我在 Xcode 6.2 中没有这个问题。如何在 Xcode 6.3 中解决这个问题?
func applicationDidBecomeActive(application: UIApplication)
{
let kChartboostAppID = "5472ef8f04b01601a1a5814c";
let kChartboostAppSignature = "5b6222426e68cda48669a1d4d8246d4c3d20db9c";
Chartboost.startWithAppId(kChartboostAppID, appSignature: kChartboostAppSignature, delegate: self);
Chartboost.cacheMoreApps(CBLocationHomeScreen)
}
class func showChartboostAds()
{
Chartboost.showInterstitial(CBLocationHomeScreen);
}
func didFailToLoadInterstitial(location :CBLocation, withError error: CBLoadError)
{
}
这为我在 Chartbeat SDK 5.2.0 上构建:
func didFailToLoadInterstitial(location: String!, withError error: CBLoadError) {
}