Reputation: 35
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?
Upvotes: 1
Views: 324
Reputation: 10185
I think you should use UViewController and add UITableView, UIPickerView and UIDatePickerView
Upvotes: 1