Giter Site home page Giter Site logo

lthmonthyearpickerview's Introduction

Hi there ๐Ÿ‘‹

Roland Leth's GitHub stats Top Langs

lthmonthyearpickerview's People

Contributors

fsoleil avatar marcelorisse avatar rolandleth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lthmonthyearpickerview's Issues

Localization does not work

You should use NSDateFormatter and NSDateComponents instead of const strings. I would love to send a pull request for that but i really don't have time, sorry :(

Cannot preselect a date in the past

Hi;

I cannot preselect a date in the past using the initialDate of any of the given init methods.

After looking at the code, it seems that you are intentionally falling back to "now" [NSDate date] if the initial date is set in the past,

Is that required elsewhere to be the case, if not it would be great to get rid of that if at the beginning of the method:
_setupComponentsFromDate

if ([date compare:[NSDate date]] == NSOrderedAscending) date = [NSDate date];

How to set initial blank string as textfield. Textfield showing minimum date as text by default.

My code is as below:


let dateFormatter: NSDateFormatter = NSDateFormatter()
        dateFormatter.dateFormat = "MM/yyyy"
        let s = dateFormatter.stringFromDate(NSDate())
        let minDate: NSDate = dateFormatter.dateFromString(s)!
        let maxDate: NSDate = dateFormatter.dateFromString("\(3) / \(2100)")!
        let monthpicker = LTHMonthYearPickerView(date: minDate, shortMonths: true, numberedMonths: true, andToolbar: true, minDate: NSDate(), andMaxDate: maxDate)
        monthpicker.delegate = self;
        txtLicenceExpire.inputView = monthpicker
        txtLicenceExpire.text = ""

but it showing me "2/2016" as txtLicenceExpire string. All i need is black string until user select any date.

The toolbar only uses the portrait size on rotation

Hi there,

Thanks for the great plugin! I just looked at my application on landscape mode and noticed, that the toolbar has only half the devise size on landscape mode. Is there refresh action on the view which I can call or is this simply a bug?

Screenshot here:

bildschirmfoto 2014-05-28 um 11 12 29

Spacing date picker

When selected the date it has space right and left. How can i solved this problem?

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.