This is two questions..
- How do I place my UIDatePicker on the bottom of the page?
- How can I get the date from the picker.
Here is my code for when I add the date picker:
picker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
[picker addTarget:self action:@selector(customDate:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:picker];
and here is my customDate:
function
- (void)customDate:(id)sender {
}
so... what do I do? How do I do this?