Comments (13)
I'm using this for my stringPicker and it works great:
picker.pickerTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor],
NSFontAttributeName:[UIFont systemFontOfSize:21.0],};
But it does not work for my Datepicker. Is this a known issue?
Thanks
from actionsheetpicker-3.0.
Can anyone help with this please ?
from actionsheetpicker-3.0.
Hi. There is no such functionality yet.
from actionsheetpicker-3.0.
I'm not going to do it in the near future.
So, it's better to close this issue.
from actionsheetpicker-3.0.
BDW: You can also use ActionSheetCustomPicker
and customize it whatever you want.
from actionsheetpicker-3.0.
+1 I am also looking for such functionality.
from actionsheetpicker-3.0.
It seems, that this relevant feature, so I reopen it.
from actionsheetpicker-3.0.
+1
from actionsheetpicker-3.0.
Give the user the chance to pass a block as a delegate for the pickerView viewForRow will do the thing.
I modify the pod adding this code to the StringPicker
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view {
id obj = (self.data)[(NSUInteger) row];
UILabel* lbl = (UILabel*)view;
if (!lbl) {
lbl = [[UILabel alloc] init];
[lbl setFont:[UIFont fontWithName:@"Helvetica" size:16]];
[lbl setAdjustsFontSizeToFitWidth:YES];
[lbl setMinimumScaleFactor:0.5f];
lbl.numberOfLines = 3;
}
if ([obj isKindOfClass:[NSString class]])
tView.text = obj;
if ([obj respondsToSelector:@selector(description)])
tView.text = [obj performSelector:@selector(description)];
return tView;
}
from actionsheetpicker-3.0.
@softwhisper Thanks for solution. Pretty busy to investigate this feature right now. But feel free to make a PR. 😉
from actionsheetpicker-3.0.
Hello everybody, check @ainopara PR: #195 with this PR you can change whatever you want, not only font. 😉
from actionsheetpicker-3.0.
I reopen it since there is a several request for this feature.
from actionsheetpicker-3.0.
@bb-git because datepicker uses native Apple Date picker, that doesn't support this option.
from actionsheetpicker-3.0.
Related Issues (20)
- SWActionSheetVC.dismissTap prevents calendar from working in inline style
- OK Button Locale not change HOT 3
- Current date is not available on compact Date picker style iOS 14.4 & above HOT 1
- Exclude days or dates
- "exported: true has no effect in '_specialize' attribute" Issue at Xcode 12.5 HOT 3
- Not working with Swift Package Manager [bug] HOT 5
- Remove the pieces of the code for less than the Deployment Target HOT 3
- Picker not showing on iPad but only on iPhone HOT 1
- Picker not appearing if try to show back to back
- ActionSheet opens in wrong display when iphone is connected to an external display.
- Mac Catalyst Warnings HOT 1
- SPM Issues HOT 1
- Adjust Picker Width HOT 2
- Unable to build archieve on Xcode 14.3 HOT 11
- date selection error
- selectedDate for .countDownTimer not working as expected
- Need secrets.COCOAPODS_TRUNK_TOKEN HOT 5
- Privacy manifest required by Apple HOT 3
- Error in v2.7.3 compilation issue HOT 2
- Needs update README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actionsheetpicker-3.0.