我正在尝试创建一个单一的访问方法。我收到这个错误(见下面的代码)。我不明白为什么我收到这个错误,这个错误是什么意思。有人可以解释吗
@H_403_4@@UIApplicationMain class AppDelegate: UIResponder,UIApplicationDelegate { static private var thedelegate: AppDelegate? class var delegate : AppDelegate { return thedelegate! } func application(application: UIApplication,didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { thedelegate = self // Syntax error: Static member 'thedelegate' cannot be used on instance of type 'AppDelegate'