Skip to content

Instantly share code, notes, and snippets.

@mosssdesign
Created October 5, 2015 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosssdesign/06f838b45ed190f37bf9 to your computer and use it in GitHub Desktop.
Save mosssdesign/06f838b45ed190f37bf9 to your computer and use it in GitHub Desktop.
Get banner image
for string in self.stringsOfFirstImages {
print("thisString: \(string)")
let query = PFQuery(className: "imageBundle")
query.whereKey("objectId", equalTo: string)
query.getFirstObjectInBackgroundWithBlock({
(object, error) -> Void in
guard object != nil else {
return
}
print("imageObject: \(object.objectId)")
let newImageFile = object["image"] as! PFFile
self.curationImages.append(newImageFile)
if self.curationImages.count == self.curations.count {
self.collectionView.reloadData()
SVProgressHUD.dismiss()
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment