Skip to content

Instantly share code, notes, and snippets.

@gfelot
Last active March 28, 2016 08:45
Show Gist options
  • Save gfelot/f229b2cf68ed77b97623 to your computer and use it in GitHub Desktop.
Save gfelot/f229b2cf68ed77b97623 to your computer and use it in GitHub Desktop.
if let coverString = myBookFromJSON?.data["cover"] as! String! {
if let url = NSURL(string: coverString) {
print(url)
let imgView = UIImageView()
imgView.pin_setImageFromURL(url)
print(imgView.image)
headerView = ParallaxHeaderView.parallaxHeaderViewWithImage(imgView.image, forSize: CGSizeMake(self.tableview.frame.size.height, 300)) as! ParallaxHeaderView
self.tableview.tableHeaderView = headerView
}
}else{
[...]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment