के साथ खराब रूप से प्रस्तुत करता है जब मैं एक नया यूआईडीएटीपीकर बनाता हूं जो इसके मोड सेट को काउंटरडाउन टिमर पर सेट करता है, तो यह काले रंग की पृष्ठभूमि के साथ खराब रूप से प्रस्तुत करता है। किसी के पास कोई अंतर्दृष्टि है? आईओएस: यूआईडीएटीपीकर ब्लैक बैकग्राउंड
सामान्य पिकर इस तरह दिखता है:
कोड: UIButton दृश्य
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);
करने के लिए 200
बदलें ऊंचाई ऊंचाई स्थापित कर रही है पोस्ट कोड का उपयोग कर रहे। – WrightsCS
मैंने उपरोक्त कोड पोस्ट किया है। –