title: Setting UIPickerView Location in Swift 4
body: <p>I currently am pulling data through a json api that is attached to a textfield. The textfield uses a pickerview to display the data. The problem I am having is that since I am doing this programmatically the pickerview is attached to the bottom of the view. I would like to have the pickerview display directly under the textfield instead of on the bottom of the view. I have tried to set the frame of the pickerview, but that hasn't worked. </p>
  
  <pre><code>thePicker.frame = CGRect(x: 0, y: DropdownField.frame.origin.y-20, width: self.view.frame.size.width, height: 300)
  </code></pre>
  
  <p>Any comments or suggestions would be greatly appreciated.</p>