错误:使用未声明的类型'MPCHandler'

时间:2019-03-11 03:38:43

标签: xcode10 swift4.2.1

在AppDelegate.swift文件中,我具有以下代码:

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    var mpcHandler:MPCHandler = MPCHandler()


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        return true
    }

    func applicationWillResignActive(_ application: UIApplication) {

    }

    func applicationDidEnterBackground(_ application: UIApplication) {

    }

    func applicationWillEnterForeground(_ application: UIApplication) {

    }

    func applicationDidBecomeActive(_ application: UIApplication) {

    }

    func applicationWillTerminate(_ application: UIApplication) {

    }
}

对于语句:var mpcHandler:MPCHandler = MPHandler()我遇到了错误。有什么建议吗?

0 个答案:

没有答案