Null不是Object StoreKit

时间:2016-02-24 05:50:31

标签: javascript ios cordova

我遵循了这个教程: https://fovea.cc/blog/index.php/3-steps-tutorial-for-phonegap-2x-in-app-purchase-on-ios/

但是列表没有渲染,我得到错误:

  

TypeError:null不是对象(评估' el.innerHTML ="应用内购买不可用。"')

任何帮助非常感谢!

这是代码:

viewDidLoad
{ 
    let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self,     
    action: "dismissKeyboard")
        view.addGestureRecognizer(tap)
}

func dismissKeyboard()
{
    // Causes the view (or one of its embedded text fields) to resign the first responder status.
    view.endEditing(true)
}

0 个答案:

没有答案