Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RidaRidss/1495a7a049a5e5935b074377bd77e43a to your computer and use it in GitHub Desktop.
Save RidaRidss/1495a7a049a5e5935b074377bd77e43a to your computer and use it in GitHub Desktop.
IOS 14 date picker modals are not showing correctly
if (@available(iOS 14, *)) {
UIDatePicker *picker = [UIDatePicker appearance];
picker.preferredDatePickerStyle = UIDatePickerStyleWheels;
}
Put the above code in AppDelegate.m file, this will override the preferedStyle of any UIDatePicker in the iOS native Workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment