Hi,
Is there a way to have double tap gesture to go from month view to a day view and single tap gesture to notify which appointment was clicked so some custom popover can be displayed (just like apple calendar)
If not supported, can it be done technically by navigating to a correct sub view and changing behavior?
Can custom month dayview be used to do that?
Thank you
Mark
Hi Mark,
Since not all the appointments will display if there isn't enough room, we don't have interaction logic.
However, you could potentially add your own interactive appointments for a month view day.
We added 2 new delegate methods in 15.1 that provide hooks into whats display on a MonthView's day:
-(UIView*)calView:(IGCalendarView*)calView monthViewDayCustomViewFor:(NSInteger)month day:(NSInteger)day year:(NSInteger)year;
and
-(void)calView:(IGCalendarView*)calView appointments:(NSArray*)appts loadedForMonthViewDayCustomView:(UIView*)customView;
The first asks you to provide a view that will be displayed in a particular day. And the second, notifies you of what appointments are available for that day, and hands you the view that you provided in the first method.
In C# the delegate methods are:
CreateMonthViewDayCustomView
AppointmentsLoadedForMonthViewDayCustomView
Hope this helps.
-SteveZ
Sorry to bother, I'd like to implement this feature, so when a user is in the month view, it's possible to choose an activity and go to a page of my choice?... How can I do it?
Hi Davide,
If you use the methods I mentioned above, you can do pretty much anything you want. Essentially, at that point you're taking control of providing the UI for the appointments. So you could potentially put a UITableView, IGGridView, or even just put some buttons. You'd then listen for those rows, or buttons to be clicked and then you'd be able to navigate wherever you'd like.