I want to change font size of date picker and picker view. is this possible ? if is it? then how it done.
There is no any API for change apperiance of UIDatePicker
.
You can make a pretty convincing replica yourself using a UIPickerView
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView {
return a;}
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
return b;}
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view {
UILabel *lblpkr= [[UILabel alloc] initWithFrame:CGRectMake(p,q,r,s)];
[lblpkr setBackgroundColor:[UIColor clearColor]];
[lblpkr setTextColor:[UIColor blueColor]];
[lblpkr setFont:[UIFont boldSystemFontOfSize:x]];
[lblpkr setText:[NSString stringWithFormat:@"%d",row]];
return lblpkr;}
For Swift
See this for customizable implementation of UIDatePicker
https://github.com/prolificinteractive/PIDatePicker