Created
October 5, 2015 22:03
-
-
Save mosssdesign/06f838b45ed190f37bf9 to your computer and use it in GitHub Desktop.
Get banner image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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