Why does my Parse Query succeed in AppDelegate, but not in ViewController?
问题 For some reason, my Parse query succeeds, and returns objects, in my AppDelegate.Swift file. However, when I make the same call in viewDidLoad of the initial view controller, it fails. Has anyone had a similar issue? Thanks! Here is my query: let query = PFQuery(className: "Houses") query.findObjectsInBackgroundWithBlock { (objects, error) -> Void in if error == nil { print("Succeeded") print(objects!.count) } else { print(error?.description) } } 回答1: SOLVED: Thanks to @Mo Nazemi in comments.