Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.

Thread: UIDatePicker question

  1. #1
    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
    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