1

I have a UITableViewController where I want to display a date picker when a row is selected and a pickerview when another row is selected (I plan to hide the other when one is displayed).

I am having trouble adding the datepicker and picker view in the story board. I can add one and make it work fine. But I can't drag the second one in the view. (I was able to add on top of the table view but I don't want that.)

To go around the problem, I thought I will add the other picker programmatically and assign the same frame, but that doesn't work either.

Any suggestions on what may be preventing me from adding a datepicker and picker view to a UITableviewcontroller?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
ae262
  • 35
  • 8

1 Answers1

1

I think you should use UViewController and add UITableView, UIPickerView and UIDatePickerView

ChikabuZ
  • 10,031
  • 5
  • 63
  • 86