How to create a calendar in iOS?

Create or add calendar in iOS application

  • I am working on an application which needs a calendar in it. Is there a framework I could use to add a calendar? Or should I create one by my own? And could I do that? I need to add events in the calendar similar to those in the iOS Calendar.

  • Answer:

    There's a page called https://www.cocoacontrols.com/ where you cand find stuff like this. Maybe you are not interested in knowing new sites and stuff so I will let you know https://www.cocoacontrols.com/search?utf8=%E2%9C%93&q=calendar. As you can see there are lots of libraries/projects that provide classes for you to implement a calendar, https://github.com/devinross/tapkulibrary is the most used, cause is the most accurate related to iOS native calendar and, the most complete. You will need the http://devinsheaven.com/tapku/documentation/ to work with this library. It provides delegates and methods for you to take full advantage (Example of methods to get when a user taps on a date or change of month, etc.): #pragma mark MonthView Delegate & DataSource - (NSArray*) calendarMonthView:(TKCalendarMonthView*)monthView marksFromDate:(NSDate*)startDate toDate:(NSDate*)lastDate{ [self generateRandomDataForStartDate:startDate endDate:lastDate]; return self.dataArray; } - (void) calendarMonthView:(TKCalendarMonthView*)monthView didSelectDate:(NSDate*)date{ NSLog(@"Date Selected: %@",date); [self.tableView reloadData]; } - (void) calendarMonthView:(TKCalendarMonthView*)mv monthDidChange:(NSDate*)d animated:(BOOL)animated{ [super calendarMonthView:mv monthDidChange:d animated:animated]; [self.tableView reloadData]; } Hope it helps.

Hussein at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.