Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the UI Calendar?

Could you help me with this question, please?

I only need to put a simple Calendar in one of the screens, and I do not have any idea of how can I obtain it, because this UI element is not in the IB.

My client wants the screen like the image below, without the UISegmentedControl (with list, day, month) that has the Calendar app on iPhone.

He wants to see just a calendar, and when you click in one of the days, another view will appear (FYI: view with data loaded from a website corresponding for that day).

http://craigl21.typepad.com/.a/6a00e008db59db8834010535e2d304970c-800wi

So, finally my questions are:

  1. How to obtain the Calendar?
  2. I have 'Today' right bar button item of the Navigation bar working (click and another view is loaded). I would like to know how can I put a similar function for the days of the calendar, which I suppose all of them are buttons and I do not know how can I access to them (as I do not know anything about the Calendar element yet).
  3. By default, today's date must be selected in blue when you load this Calendar view, and when you press any of the days, another view will be loaded. If today's date is selected initially, when I load the Calendar view, the new view with today's details would be loaded immediately? (how could avoid this behaviour?) or hopefully, the calendar would wait for my click on today's date (or any other date)?

Your help will be much appreciated.

like image 740
EMontesMac Avatar asked Jun 21 '11 09:06

EMontesMac


People also ask

What is UI calendar?

calendar. A single-month calendar that allows users to select dates and move to the next/previous month. The control supports all date and time formats.

How to use jqueryui datepicker?

The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.


2 Answers

The NSCalendar classes are only used for date calculation and apple does not provide a standard calendar element as a part of their UIKit library. However, take a look on this github project, someone published a project that contains a custom made calender UI.

https://github.com/guicocoa/calendar.

It's all open source ofcourse, so you can adjust the design and functionality as you need

like image 126
aporat Avatar answered Oct 11 '22 15:10

aporat


You can use https://github.com/devinross/tapkulibrary calendar for you app If you want to add some event on date selection then you need to import events from your app to native iphone calendar? You should use EventKit for that.

like image 44
Soniya Avatar answered Oct 11 '22 14:10

Soniya