Type Any has no subscript members Error in Swift 3.0?
问题 I am following this tutorial here... And the issue I am having is I keep getting the error. "Type Any has no subscript members Error" in this function... func allItems() -> [TodoItem] { let todoDictionary = NSUserDefaults.standardUserDefaults().dictionaryForKey(ITEMS_KEY) ?? [:] let items = Array(todoDictionary.values) return items.map({TodoItem(deadline: $0["deadline"] as! NSDate, title: $0["title"] as! String, UUID: $0["UUID"] as! String!)}).sort({(left: TodoItem, right:TodoItem) -> Bool in