Giter Site home page Giter Site logo

Comments (13)

bb-git avatar bb-git commented on August 17, 2024 2

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.

thatsagreatapp avatar thatsagreatapp commented on August 17, 2024

Can anyone help with this please ?

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on August 17, 2024

Hi. There is no such functionality yet.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on August 17, 2024

I'm not going to do it in the near future.
So, it's better to close this issue.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on August 17, 2024

BDW: You can also use ActionSheetCustomPicker and customize it whatever you want.

from actionsheetpicker-3.0.

nyekimov avatar nyekimov commented on August 17, 2024

+1 I am also looking for such functionality.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on August 17, 2024

It seems, that this relevant feature, so I reopen it.

from actionsheetpicker-3.0.

arturdev avatar arturdev commented on August 17, 2024

+1

from actionsheetpicker-3.0.

 avatar commented on August 17, 2024

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.

skywinder avatar skywinder commented on August 17, 2024

@softwhisper Thanks for solution. Pretty busy to investigate this feature right now. But feel free to make a PR. 😉

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on August 17, 2024

Hello everybody, check @ainopara PR: #195 with this PR you can change whatever you want, not only font. 😉

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on August 17, 2024

I reopen it since there is a several request for this feature.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on August 17, 2024

@bb-git because datepicker uses native Apple Date picker, that doesn't support this option.

from actionsheetpicker-3.0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.