Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 swift 3 构建一种聊天信使。为了存储登录用户,我尝试使用 AnyObject 类型的 onject。
var loggedInUser = AnyObject?()
它给出了以下错误: ViewController.swift:29:24: Cannot invoke initializer for type 'AnyObject?' 没有争论