Thread: UIDatePicker question
-
01-29-2008, 06:28 PM #1
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];
-
01-20-2010, 10:52 PM #2
You found solution to this??
iPhone 4
Firmware : iOS4
Carrier : Softbank (Japan)
Jailbroken using Jailbreakme



LinkBack URL
About LinkBacks
Reply With Quote