使用未声明的类型' WalkthroughViewController'

时间:2018-06-11 16:52:03

标签: swift frameworks

当我在我的框架源代码中使用下面的代码时,我收到以下错误:

  

使用未声明的类型' WalkthroughViewController'

override open func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    let defaults = UserDefaults.standard
    let hasViewedWalkthrough = defaults.bool(forKey: "hasViewedWalkthrough")

    if !hasViewedWalkthrough {
        print("succes")

        if let pageVC = storyboard?.instantiateViewController(withIdentifier: "WalkthroughViewController") as? WalkthroughViewController {
            present(pageVC, animated: true, completion: nil)
        }
    }
}

我该如何解决这个问题?

0 个答案:

没有答案