Can you change the font size of a UIDatePicker?
Unfortunately, no. (Reference here)
An alternative would be to make your own version using UIPickerView
As per the Documentation:
- Appearance: The appearance of UIDatePicker is not customizable.
- You should integrate date pickers in your layout using Auto Layout. Although date pickers can be resized, they should be used at their intrinsic content size.*
Change the font of a DatePicker
It is not good to Customise the UIDatePicker
Although it is suggested to use the Native(Default) UIDatePicker
of the Swift,
then also if anyone wants you can refer the following list
Following are some of the Customisable Datepicker
from GitHub.
- https://github.com/squimer/DatePickerDialog-iOS-Swift
- https://github.com/itsmeichigo/DateTimePicker
- https://github.com/hsylife/SwiftyPickerPopover
- https://github.com/EngrAhsanAli/AAPickerView
- https://github.com/dillidon/alerts-and-pickers
- https://github.com/hughbe/day-date-picker
- https://github.com/alikaragoz/AIDatePickerController
- https://github.com/CooperRS/RMDateSelectionViewController
- https://github.com/zhhlmr/ZHDatePicker
- https://github.com/GasimGasimzada/FxDatePicker
- https://github.com/anatoliyv/SMDatePicker
- https://github.com/MarioIannotta/MIDatePicker
Note: But yes do not Try to customise The appearance of
UIDatePicker
.As it might make a danger of rejection of your app in
future.
Hope this helps.
Related Topics
Mobile Safari: Inertia Scrolling on Body and Minimal UI Behavior
API Call Error in Xcode 7/iOS 9 (How to Setup App Transport Security in Plist)
Uitabbar Change Background Color of One UItabbaritem on iOS7
How to Add Action to Uialertview in Swift (iOS 7)
Stop Overscroll When Using "-Webkit-Overflow-Scrolling: Touch"
How to Know Which Line of Code Has Caused My iOS App to Crash in Xcode 9
Go Back to View Controller from Skscene
How Come My Drawing Code Keeps Resulting in Fuzzy Shapes
How to Pair And/Or Bond to Ble on iOS Using Swift Code and an Hm-10 So Data Sent Is Encrypted
How to Use The Coreaudio API in Swift
How to Animate Uilabel's Textcolor Change
Use Elcimagepickercontroller to Pick Video
Display: Flex; Doesn't Work on iPad (Both Chrome and Safari)
Checking Cellular Network Type in iOS