title: Unable to load pictures from PhotoLibrary Swift 3
body: <p>I am totally newbie to Swift , I don't get any error and my app compliles fine. however I am unable to load any photos , can someone point me to the correct direction </p>
  
  <p>here is my code from the storyboard</p>
  
  <pre><code>//
  //  ViewController.swift
  //  FoodTester
  //
  //  Created by Waheed Rafiq on 11/10/2016.
  //  Copyright © 2016 Waheed Rafiq. All rights reserved.
  //
  
  import UIKit
  // Object inhertance to in IOS you adopt the protocol same theory
  class ViewController: UIViewController, UITextFieldDelegate ,UIImagePickerControllerDelegate , UINavigationControllerDelegate{
  
  
  // MARK: Properties
  
  
  @IBOutlet weak var nameTextField: UITextField!
  
  @IBOutlet weak var mealNameLabel: UILabel!
  
  
  @IBOutlet weak var photoImageView: UIImageView!
  
  
  // MARK : UITextFieldDelegate ---&gt; 
  
  
  
  
  
  // MARK: Actions below ---&gt;
  
  @IBAction func selectImageFromPhotoLibrary
  (_ sender:   UITapGestureRecognizer) {
  
      // hide the keyboard
      nameTextField.resignFirstResponder()
  
      //UIImagePickerController is a view controller that lets user pick   media from their photo library.
  
      let imagePickerController = UIImagePickerController()
      // only allow photos to be picket not taken.
      imagePickerController.sourceType = .photoLibrary
  
      imagePickerController.delegate = self
  
      present(imagePickerController, animated: true, completion: nil)
   }
  
  // need to implement two of the delegate methods defined in.
  
  // MARK: UIImagePickerControllerDelegate
  
  func imagePickerControllerDidCancel
  (_ picker: UIImagePickerController)   {
      // Dismiss the picker if the user canceled.
      dismiss(animated: true, completion: nil)
  }
  
  func imagePickerController
  (_ picker: UIImagePickerController, 
  didFinishPickingMediaWithInfo info: [String : Any]) {
  
      // the info dictionary contrains 
   multiple representations of the image and this uses the original.
  
   let selectedImage = info[UIImagePickerControllerOriginalImage] 
   as!   UIImage
  
      // Set PhotoImageView to display the selected image.
  
      photoImageView.image = selectedImage
  
      // Dismiss the picker
      dismiss(animated:true,completion:nil)
  }
  
  
  @IBAction func setDefaultLabelText(_ sender: UIButton) {
  
      mealNameLabel.text = "Default Text"
      nameTextField.text = "Enter something"
  
  }
  
  // Mark: Gesture recognizer 
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after 
   loading the view, typically from a nib.
  
      // handle the text fields user input throught delegate callbacks.
      nameTextField.delegate = self
  
  
  }
  
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  func textFieldShouldReturn(_ textField: UITextField) -&gt; Bool {
      // hide the keyboard
      textField.resignFirstResponder()
      return true
  
  
  }
  
  func textFieldDidEndEditing(_ textField: UITextField) {
      mealNameLabel.text = textField.text
  
  
     }
  
  }
  </code></pre>
  
  <p>any mistake any advice is greatly appericated </p>