klazuka / Kal

A calendar component for the iPhone (the UI is designed to match MobileCal)
http://www.thepolypeptides.com
1.22k stars 347 forks source link

How to retun a date.. #34

Open teamveevee opened 12 years ago

teamveevee commented 12 years ago

Hi Klazuka, I am new to iOs dev. I started to use Kal calendar in my first app and i would like to return the date selected by the user on the month view to my main app. What is the easiest way to do this? Thanks in advance.

RavenPythia commented 12 years ago

Hi

I have done it by subclassing KalViewController and set a delegate in that custom KalViewController. In that subclass you can override - (void) didSelectDate:(KalDate*) date and use [super didSelectDate:date] in it. Then call the delegate (maybe set to your view controller of the main app) and you have the date in your main app.

Hope that helps.