Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Date/Time slot selection event
posted

Greetings,

I would like to know if there is an event fired when the user selects a time slot in both Week and Day CalendarTypes. If not, is there another way to handle such a selection?

I am interested in allowing the user to quickly add an event at that datetime on touch up.

Thank you for your time,

vagg

Parents
No Data
Reply
  • 40030
    Verified Answer
    Offline posted

    Hi Vagg, 

    Yes, the IGCalendarViewDelegate has two options: 

    -(void)calView:(IGCalendarView*)calView hourTapped:(CGFloat)hour forDate:(NSDate*)date;

    -(void)calView:(IGCalendarView*)calView hourPressed:(CGFloat)hour forDate:(NSDate*)date;

    You can only use one of them at a time, but they work for both the WeekView and DayView. 

    Hope this helps, 

    -SteveZ

Children