I want to display the date picked from UIDatePicker on the static cell.
The problem code is below. I want to change self.label.text
by changing the date with UIDatePicker, but it doesn't change.
- (IBAction)inputDate:(id)sender {
self.label.text = [NSString stringWithFormat:@"%@", self.datePicker.date];
}
- Method
inputDate:
is wired to UIDatePicker. - Property
datePicker
is also wired to UIDatePicker.
Is there any specific way to change static cells? Thanks for your kindness.