Skip to content

Instantly share code, notes, and snippets.

@tatsuro-ueda
Created August 11, 2012 11:07
Show Gist options
  • Save tatsuro-ueda/3323852 to your computer and use it in GitHub Desktop.
Save tatsuro-ueda/3323852 to your computer and use it in GitHub Desktop.
【テーブル】【static cells】static cellsのテーブルにUIDatePickerを置くには

##using UIDatePicker on static cell

Just one row code solved the Problem. Stunner's advice is very helpful for this final answer.

- (IBAction)inputDate:(id)sender {
    self.label.text = [NSString stringWithFormat:@"%@", self.datePicker.date];
    [self.tableView reloadData]; // <- add this row !
}

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment