swift - PFQuery not picking up variable -


a user enters text textfield, , want parse query results based on field. "kvc syntax challenged"!, wondering code need pick newtext var in parse filter. in advance can me...

 func wordentered(alert: uialertaction!){         // store new word         newtext = newwordfield.text! string         // query parse         getlist()     }    func getlist() {     let query = pfquery(classname: "wordlist")     query.wherekey("sharingcode", equalto: "@\(newtext)") // not picking newtext??      query.findobjectsinbackgroundwithblock { (objects:[pfobject]?, error:nserror?) -> void in         if error == nil && objects != nil {                 object in objects! {                  // process objects         } else {             print("error")         }     } } 


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -