UIPicker for month and year. Getting years dynamically
I am trying to make a picker with month and year only (for credit card
expiration date). After searching around, it seems that using a custom
UIPicker would be the best option.
My question is, is there a way to get the array for years dynamically,
without having to hardcode all of the upcoming years? I have been looking
around, but can't seem to find an answer.
If anyone could point me in the right direction, that would be greatly
appreciated.
Thank you.
No comments:
Post a Comment