Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. [Error]: Network connection failed. Making attempt 2 after sleeping for 2.252750 seconds.
  2. [Error]: unsupported URL (Code: 100, Version: 1.12.0)
  3.  
  4. override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
  5. let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! FollowersTableViewCell
  6.  
  7. cell.userNameLabel.text = followUsernameArray[indexPath.row]
  8. let file = avaArray[indexPath.row]
  9. file.getDataInBackgroundWithBlock { (data: NSData?, error: NSError?) in
  10. if error == nil {
  11. if let data = data {
  12. //ERROR HERE. UNSUPPORTED URL!!??
  13. let image = UIImage(data: data)
  14. cell.avaImageView.image = image
  15. }
  16. }else if error != nil {
  17. print("FROM FOLLOWERS TABLE VC cellForRowAtIndexPath: (error?.localizedDescription)")
  18. }
  19. }
  20.  
  21. return cell
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement