使用以下代码添加 DatePicker,我可以滚动年份,但不能滚动日期或月份。有任何想法吗?
datePicker = new UIDatePicker(pickerRect);
datePicker.Mode = UIDatePickerMode.Date;
datePicker.SetDate(appDelegate.store.builderPlan.p_startDateTime, true);
datePicker.AutoresizingMask = UIViewAutoresizing.FlexibleDimensions;
datePicker.ValueChanged += delegate(object sender, EventArgs e) {
SetDate();
};
this.AddSubview(datePicker);
谢谢,瑞克