rolandleth / lthmonthyearpickerview Goto Github PK
View Code? Open in Web Editor NEWSimple to use month & year picker view
License: MIT License
Simple to use month & year picker view
License: MIT License
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 :(
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];
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.
When selected the date it has space right and left. How can i solved this problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.