I'm creating a UIDatePicker
programmatically that permits to select a date (day/month/year).
When I scroll to select inputs (day, month or year), the selected value is always hidden. Here a screenshot:
I have no idea what kind of bug it is and didn't find any solutions on Stackoverflow.
Code used:
CGRect datePickerFrame = CGRectMake(0, 40, self.view.frame.size.width, 216);
UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:datePickerFrame];
[self.view addSubview:datePicker];
This bug is occuring on iPhone 5S iOS 9.2.1
Programming language: Objective-C