Search code examples
iphoneuipickerviewuidatepicker

How to handle time control in iPhone programming


Any idea on how to customize the UIDatePicker with single column with list of events in it,and user should be able to select one among it ? Let me know some details about it. or example related to it.

Thank You


Solution

  • In code:
    UIDatePicker has the datePickerMode property exactly for this reason.
    You can set it with UIDatePickerModeTime.

    In Interface Builder:
    The top property in Date Picker Attributes window is Mode - choose Time.