There are some constants for NSLocale, like NSJapaneseCalendar, but what if I wanted to create a "Physical Calendar" or something that isn't there? Is there a way to define an arbitrary calendar system and then use that with NSDate, NSDateComponents and NSCalendar?
Asked
Active
Viewed 794 times
1
-
I'd really like to know the answer to this myself. – outis Nov 11 '10 at 11:17
-
Related question: [Creating a new NSCalendar calendar](http://stackoverflow.com/questions/1334318/creating-a-new-nscalendar-calendar) – outis Nov 14 '10 at 00:34
4 Answers
2
In UIKit it's not possible because you can't define your own locale, that is what you need to create your custom calendar system using NSCalendar.
What you should do is define your custom locale and use it with the initWithCalendarIdentifier
for create a really custom calendar.
With "define" I'm saying:
- create the necessary files on /usr/share/locale/
- edit the locale.gen file to add your locale
- execute the localgen program to compile your locale
Then you can create a custom calendar using the identifier you choose.

Bruno Berisso
- 1,091
- 11
- 33
1
Tapku library has a calendar view
http://github.com/devinross/tapkulibrary
you may be interested in this..

Saurabh
- 22,743
- 12
- 84
- 133
1
check this Q&A, comprehensive listing of calendar API's:
0
Another git project, Kal can be found here: https://github.com/klazuka/Kal
Works with both SQLite and JSON data sources

Scott Bossak
- 2,471
- 20
- 17