Quando creo un nuovo UIDatePicker con la relativa modalità impostata su CountDownTimer, presenta uno scarso rendimento con uno sfondo nero. Qualcuno ha qualche intuizione? IOS: UIDatePicker esegue il rendering scarsamente con uno sfondo nero
Normale Picker assomiglia a questo:
CODICE: Nota l'UIButton un pulsante pieno schermo dietro il selettore per chiudere la vista
intervalPicker = new UIDatePicker(new RectangleF(0, this.tvc.View.Bounds.Height - 135, this.tvc.View.Bounds.Width, 200));
intervalPicker.Mode = UIDatePickerMode.CountDownTimer;
intervalPicker.CountDownDuration = DeviceSession.CurrentBehavioralEvent.Duration*60;
intervalPicker.ValueChanged += new EventHandler(intervalPicker_EditingChanged);
UIButton b = UIButton.FromType(UIButtonType.Custom);
b.Opaque = false;
b.BackgroundColor = UIColor.Clear;
b.Frame = new RectangleF(0, 0, this.tvc.View.Bounds.Width, this.tvc.View.Bounds.Height);
b.TouchUpInside += (o, s) => {
intervalPicker.RemoveFromSuperview();
b.RemoveFromSuperview();
};
this.tvc.NavigationController.View.AddSubview(b);
this.tvc.NavigationController.View.AddSubview(intervalPicker);
pubblicare il codice che si sta utilizzando. – WrightsCS
Ho pubblicato il codice sopra. –