iPhone: Adding a Done button within a pop up DatePicker frame
问题 I pop up a DatePicker with the following. Now I'm trying to add a Done button at the top of the pop up frame. -(IBAction) contactBDayDatePicker{ NSLog(@"contactBDayDatePicker"); pickerView = [[UIDatePicker alloc] init]; pickerView.datePickerMode = UIDatePickerModeDate; if (self.pickerView.superview == nil){ [self.view.window addSubview: self.pickerView]; // size up the picker view to our screen and compute the start/end frame origin for our slide up animation // // compute the start frame