I'm trying to put retrieved videos from Parse in UIimage and i need help of that. i retrieved videos as a PFFile . here is my code
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell :mineCell = tableView.dequeueReusableCellWithIdentifier("mineCell")as! mineCell
cell.usernameLabel.text = creator[indexPath.row]
videoFile[indexPath.row].getDataInBackgroundWithBlock { (videoData :NSData?, error:NSError?) -> Void in
if videoData != nil{
let video = UIImage(data: videoData!)
cell.videoView.image = video
println("it should the video load in the UImage ")
}
else {
println(error)
}
}
return cell