Force asynchrounous Firebase query to execute synchronously?
问题 I'm designing an app that uses firebase to store user information. Below, I'm trying to write a method that queries the database, obtains the stored password, and checks it against the inputted password, returning a boolean based on whether or not they match. -(BOOL) ValidateUser: (NSString*)username :(NSString*)password { //initialize blockmutable true-false flag __block bool loginFlag = true; //initialize blockmutable password holder __block NSString* passholder; //check if user exists in