Tuesday, January 17, 2012

Date Picker And Table View


I'm working on a project on iPhone and I want a Date Picker on a few of the rows in the table view.



Please help me out.

1 comment:

  1. If this is a StaticCell TablieView, then you can just add these via storyboard.

    If not, you will need to use the cellForRowAtIndexPath to determine which cell you want to add the datepicker to. You would then instantiate a UIDatePicker, set the attributes if needed and add that subview to your cell.

    One warning - using something this large in an iPhone TableView app will result in a crappy user experience.

    ReplyDelete