Month TableView Organizer
Posted
by rson
on Stack Overflow
See other posts from Stack Overflow
or by rson
Published on 2009-11-18T18:46:08Z
Indexed on
2010/03/29
9:03 UTC
Read the original article
Hit count: 163
I need to create a table view with 1 or 2 sections, depending on certain conditions. The first section needs to contain all of the remaining months of the current year, and the second section contains the preceding months of the next year, up to but not including the current month.
Example:
2009
November
December
2010
January
February
March
April
May
June
July
August
September
October
This would be the scenario with the current month of November. However, if it were January, there would be only 1 section containing all 12 months of the current year.
This all needs to be dependent on the date settings of the phone.
© Stack Overflow or respective owner