1

I am making a small program and I ran into a small problem. I need to pop up a UIDatePicker in my UITableViewController. Any help will be appreciated. I want the UIPickerView to appear when a button is pressed. I wanted the UIPickerView to be hidden and when the user presses the button it becomes visible. But since I can't place the UIDatePicker in my UITableViewController that can't happen. Is there another way?

Abdullah Shafique
  • 6,878
  • 8
  • 35
  • 70

2 Answers2

0

I found my solution! I decided to create the UIDatePicker with my code. I used:

dtpPicker = [[UIDatePicker alloc]init];
dtpPicker.frame = CGRectMake(0, 0, 480, 162);
[self.view addSubview:dtpPicker];

Thanks for everyone who helped me!

Abdullah Shafique
  • 6,878
  • 8
  • 35
  • 70
0

[self.tableView addSubview:dtpPicker]; if tableviewin view.

Roman C
  • 49,761
  • 33
  • 66
  • 176
user2094867
  • 299
  • 2
  • 7