override func viewDidLoad() {
super.viewDidLoad()
let query = PFQuery(className:"reservedCust")
query.findObjectsInBackgroundWithBlock {
(objects, error) -> Void in
if error == nil {
if let objects = objects {
for object in objects {
if let item = object["item"] as? String {
self.itemList.append((object["item"] as? String)!)
}
}
}
print(self.itemList)
self.tableView.reloadData()
}else {
}
}
}
so this is my code . this returns all the items in my "item" column of parse for class"reservedCust". I have another class "reservedList" which has "userid" i would like to retrieve the "item" accoring to the "userid"