Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo Villagomez authored and Mateo Villagomez committed Mar 2, 2016
1 parent 6b483b9 commit b839c9a
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 94 deletions.
20 changes: 9 additions & 11 deletions DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@ class DetailViewController: UIViewController {

@IBOutlet weak var bookImage: UIImageView!

var test = ""
var test1 = ""
var titleBook: String = ""
var author: String = ""
var image: String?

func configureView() {

}
override func viewDidLoad() {
super.viewDidLoad()
self.configureView()
bookTitle.text = test
print(test)
if test == bookTitle {
authors.text = datosLibros[0].authors

self.bookTitle.text = titleBook
self.authors.text = "Author/s:\(author)"
if (image != nil) {
let imageUrl = NSURL(string: image!)
let imageData = NSData(contentsOfURL: imageUrl!)
self.bookImage.image = UIImage(data: imageData!)
}
}

Expand Down
Binary file not shown.
Loading

0 comments on commit b839c9a

Please sign in to comment.