ios - How to fetch a list of items in a column from Parse cloud using swift -


i beginner ios swift , presently working parse cloud. need fetch contents of complete column list class named "student". looking print list of roll numbers student class.

my current code this:

  @ibaction func btn_download(sender: anyobject) {          var compquery = pfquery(classname:"student")         compquery.wherekey("roll", equalto:enter_rollnumber.text)          compquery.findobjectsinbackgroundwithblock {             (student: [anyobject]!, error: nserror!) -> void in             if error == nil {                 // found objects                 competition in student {                     println(competition["name"] string)                 self.display_name.text = competition["name"] string?                 }             } else {                 // log details of failure                println("error")             }         }} 


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -