title: Show UIPickerView on label click
body: <p>I use <code>UIPickerView</code> to select data for label:</p>
  
  <pre><code>class BookingOptionsViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {
  
      @IBOutlet weak var lblProfile: UILabel! 
  
      var data = ["1", "2", "3"]
      var picker = UIPickerView()
  
      override func viewDidLoad() {
          super.viewDidLoad()        
          picker.delegate = self
          picker.dataSource = self
          let tap = UITapGestureRecognizer(target: self, action: #selector(tap(gestureReconizer:)))
          lblProfile.addGestureRecognizer(tap)
          lblProfile.isUserInteractionEnabled = true
      }
  
      func tap(gestureReconizer: UITapGestureRecognizer) {
          print("*")
          picker.isHidden = false
      }
  
  func numberOfComponents(in pickerView: UIPickerView) -&gt; Int {
          return 1
      }
  
      func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -&gt; Int {
          return data.count
      }    
  
      func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
          lblProfile.text = data[row]
          self.view.endEditing(true)
      }
  
      func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -&gt; String? {
          return data[row]
      }
  }
  </code></pre>
  
  <p>When I click on label I want to show my <code>UIPickerView</code>, but <strong><code>picker.isHidden = false</code></strong> does not work.
  What should I do to display <code>UIPickerView</code> ?</p>