title: Why is my image view not working and why am I getting a blank screen for this view?
body: <p>Using a Photo viewer that displays a photo from a collectionView. Can anyone tell me why the viewer is completely ? The image doesn't get displayed at all. I just get a blank screen. In my storyboard, I have an image view with an outlet in my view controller... Why is nothing getting displayed ?</p>
  
  <pre><code>import UIKit
  import QuartzCore
  import Alamofire
  import AlamofireImage
  
  class PhotoViewerViewController: UIViewController, UIScrollViewDelegate {
  
      let goldenWordsYellow = UIColor(red: 247.00/255.0, green: 192.00/255.0, blue: 51.00/255.0, alpha: 0.5)
  
      var imageURLForViewerController: String = ""
  
      @IBOutlet weak var imageView: UIImageView!
  
      let spinner = UIActivityIndicatorView(activityIndicatorStyle: .White)
  
      var photoInfo: PictureElement?
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          setupView()
          loadPhoto()
      }
  
      func setupView() {
          spinner.center = self.imageView.center
          spinner.color = goldenWordsYellow
          spinner.hidesWhenStopped = true
          spinner.startAnimating()
          view.addSubview(spinner)
  
          let doubleTapRecognizer = UITapGestureRecognizer(target: self, action: "handleDoubleTap:")
          doubleTapRecognizer.numberOfTapsRequired = 2
          doubleTapRecognizer.numberOfTouchesRequired = 1
          view.addGestureRecognizer(doubleTapRecognizer)
      }
  
      func loadPhoto() {
  
          let image = UIImage(named: "AppIcon")
  
          self.imageView.image = UIImage(named: "AppIcon")
          self.imageView.frame = self.view.frame
          self.view.bringSubviewToFront(imageView)
          self.spinner.stopAnimating()
      }
  
      override func viewWillAppear(animated: Bool) {
          super.viewWillAppear(animated)
  
          if photoInfo != nil {
              navigationController?.setToolbarHidden(false, animated: true)
          }
      }
  
      override func viewWillDisappear(animated: Bool) {
          super.viewWillDisappear(animated)
          navigationController?.setToolbarHidden(true, animated: true)
      }
  </code></pre>