问题
I am using swift 3 to build a type of chat messenger. To store loggedIn Users, I try to use an onject of type AnyObject.
var loggedInUser = AnyObject?()
And it gives the following error: ViewController.swift:29:24: Cannot invoke initializer for type 'AnyObject?' with no arguments
来源:https://stackoverflow.com/questions/39515792/cannot-invoke-initializer-for-type-anyobject-with-no-arguments