date picker inside table cell

Discussion in 'iOS Programming' started by jagatnibas, Sep 24, 2009.

  1. jagatnibas macrumors regular

    Jul 28, 2008
    Hi All,
    I am trying to put a datepicker inside table cell. The date picker size does not seem to reduce to be fit inside the table cell. Also when cell is selected the date picker becomes un responsive. If i make cell selection style none, date picker also becomes unresponsive.

    any good ideas how to achieve that ? a date picker inside a teble cell ?

  2. drivefast macrumors regular

    Mar 13, 2008
    first off, you may want to increase the height of that row - but do it in tableView:heightForRowAtIndexPath: as opposed to just setting the height of the UITableViewCell object. then i guess all you have to do is to add the date picker to the cell - that should work easily since the date picker is a UIView. and work out your table view settings such that cells would never get selected.

    are you sure you're not better off using a UIScrollView instead of a table view?...

Share This Page