Rambo
Rambo

Reputation: 591

How to change Font of UIDatePicker?

I have used UIDatePicker in my app. I want to (actually have to) change the font size (as my app needs) and font family in that datepicker.

Please help, if any body has done that before...

Thanks in advance...

Upvotes: 1

Views: 4801

Answers (2)

Lasonic
Lasonic

Reputation: 901

I don't advocate doing this, but if you really need to resize the font, just resize the entire UIDatePicker.

datePicker.transform = .init(scaleX: 0.8, y: 0.8)

Upvotes: 0

MarkPowell
MarkPowell

Reputation: 16540

See: iPhone UIDatePicker style

Based on that link, it doesn't look good...

You are most likely going to have to create a custom picker.

Upvotes: 1

Related Questions