delete debug message

This commit is contained in:
Bob Sun 2017-02-09 14:58:34 +08:00
parent e2036f202f
commit 9a871ef852
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -104,14 +104,12 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
func updatePasswordImage(url: String) { func updatePasswordImage(url: String) {
do { do {
print("downloading: \(url)")
try FavIcon.downloadPreferred(url) { [weak self] result in try FavIcon.downloadPreferred(url) { [weak self] result in
switch result { switch result {
case .success(let image): case .success(let image):
let indexPath = IndexPath(row: 0, section: 0) let indexPath = IndexPath(row: 0, section: 0)
self?.passwordImage = image self?.passwordImage = image
self?.tableView.reloadRows(at: [indexPath], with: UITableViewRowAnimation.automatic) self?.tableView.reloadRows(at: [indexPath], with: UITableViewRowAnimation.automatic)
print("success")
let imageData = UIImageJPEGRepresentation(image, 1) let imageData = UIImageJPEGRepresentation(image, 1)
self?.passwordEntity?.setValue(imageData, forKey: "image") self?.passwordEntity?.setValue(imageData, forKey: "image")
case .failure(let error): case .failure(let error):