+ Reply
Results 1 to 2 of 2
  1. #1
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default UIDatePicker question

    I'm really new at this but my question is has anyone been able to add the uidatepicker to a UIPreferencesTextTableCell?

    I can get the datepicker subview to show up on the main view using [mainView addSubview: datePicker]; but not in an editable cell. Any advice would be greatly appreciated.

    sample code below:

    //Create the keyboard
    keyboard = [[UIKeyboard alloc] initWithDefaultSize];
    //Create the datePicker
    datePicker = [[UIDatePicker alloc] initWithFrame: CGRectMake(0.0f, 450.0f - 200.0f, 320.0f, 200.0f)];

    workName = [[UIPreferencesTextTableCell alloc] init];
    [workName setTitle:@"Name:"];
    [[workName textField] setPreferredKeyboardType: 0];

    workDate = [[UIPreferencesTextTableCell alloc] init];
    [workDate setTitle:@"Date:"];
    [[workDate textField] setDatePickerMode:2];

  2. #2
    iPhone? More like MyPhone
    Join Date
    Aug 2008
    Posts
    195
    Thanks
    9
    Thanked 12 Times in 12 Posts

    You found solution to this??
    iPhone 4
    Firmware : iOS4
    Carrier : Softbank (Japan)
    Jailbroken using Jailbreakme

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts