title: How do I make a UIPickerView rise from the bottom of the app after pressing a button?
body: <p>I'm learning Swift by making an iPhone app. The problem I'm running into involves implementing a UIPickerView. I have a button that should, if pressed, make a UIPickerView ascend from the bottom of the screen to a set length over the Main View. Then when the user selects an item from the UIPickerView, the UIPickerView descends down out of the Main View until it's called again.</p>
  
  <p>A good example of what I'm trying to replicate would be when you're adding an alarm in the Clock app, without the view covering up everything and without the label and without the switches.</p>
  
  <p>I'd also would like to have the items I pick from the PickerView trigger a function, but I think that'll be after I get past this hurdle.</p>
  
  <p>Here's the relevant code I have so far.</p>
  
  <pre><code>@IBOutlet weak var pickerContainer: UIView!
  @IBOutlet weak var pickerView: UIPickerView!
  let picker_values = ["val 1", "val 2", "val 3", "val 4"];
      override func viewDidLoad() {
      super.viewDidLoad()
  
  }
  
  
  @IBAction func buttonPressed(sender: AnyObject) {
      print("pressing a die!");
  
  }
  </code></pre>
  
  <p>Thanks in advance!</p>