title: Display UIDatePicker With ViewController (modalPresentationStyle = UIModalPresentationPopover)
body: <p>I've just started to learn how to show UIDatePicker using PopoverController (still not working though), and Xcode already told me that it's deprecated.</p>
  
  <p>It's still very rare to see tutorial made for the new ways, let alone with DatePicker inside of it. And some of the tutorial is written in Swift, while I learn objective C. I need a simple code example that can show DatePicker at the touch of TableViewCell, no matter where the cell position is in the screen (I also hoped that the popover view would not popped over outside or partially outside the screen), a button below the picker for accept the value, and auto dismiss the popover if user tap outside the popover. I've tried to implement this <a href="https://stackoverflow.com/questions/4824043/uidatepicker-pop-up-after-uibutton-is-pressed">example</a>, which does not using popover, but the result is weird. I also have read <a href="https://stackoverflow.com/questions/32818297/how-to-correct-uipopovercontroller-is-deprecated-warning-message">this</a> as the knowledge base start for me to learn about the new way to do popover, but it doesn't show me how to put a DatePicker and a button inside of it. Can anybody help?</p>
  
  <p>Oh, btw, I use UITableViewController, if that can means anything for the solution. Thanks.</p>