freeup.blogg.se

Pod calendar for mac
Pod calendar for mac









NSLocale *persianLocale = Īnd for using CalendarIdentifier use this property : It's very simple and useful to create calendar base on your locale and of course your country. Determines what day of the week is in the leftmost column. Preferred Week Start - Default behavior behavior is Monday. Headers - Default behavior is to show the headers, but they can also be hidden, in which case everything else will get shifted up accordingly (after a set needs display call). If both are marked and coincide on the same day, it will show up with the current selection color, not today's color. (void)setPreferredWeekStartIndex:(NSInteger)index ĭate Markers - Default behavior is to mark the currently selected date and not today, but this can be customized to suit your needs. Whether the month and year headers should be (nonatomic, assign) BOOL shouldShowHeaders Whether today's date should be (nonatomic, assign) BOOL shouldMarkToday Whether the currently selected date should be (nonatomic, assign) BOOL shouldMarkSelectedDate However, these events will be logged with a different event type than swiping. There are external methods to mimic the swiping behavior in case a different UI is desired.

pod calendar for mac

MonthsAndYears - available months and years

pod calendar for mac

This component was created for iPhone/iPod resolution, for iPad its works, but it looks really small, if it's necessary, you can play with static constants in the CalendarView.m, and maybe in future, will be done the scaling.ĭefault - there're days, months and years, the user can change months with help swipe gesture or pinch gesture for transitions in the calendar So, it's all, you should see the calendar view.

pod calendar for mac

You can add view in the Interface Builder and set class to CalendarView or create in the code:ĬalendarView *calendarView = initWithPosition:10.0 y:10.0] There're samples for iPhone and iPad, and also with using a popover.Īdd to your project the next source files: It's lightweight and simple control with supporting Locale and CalendarIdentifier.











Pod calendar for mac