Last active
March 28, 2016 08:45
-
-
Save gfelot/f229b2cf68ed77b97623 to your computer and use it in GitHub Desktop.
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
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