| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
10年前发布

OSX 日历组件:Calendar-OSX

Calendar-OSX 是用于 OSX 的日历组件,灵感来自于 iOS 上一些免费的替代品。

Description

MLCalendarView is a date selector component which is represented as a month calendar. This component extracted from the ModerLook-OSX package for easier standalone use.

The component uses the system Language & Region settings, so it will display the month and day names regarding to the system settings. Also it lays out the days according to the first day of week system setting.

Usage

To use the component in your project you need to copy all the files in the MLCalendar group to your project.

MLCalendarView is derived from NSViewController and can be used as any other view.

The component contains the following properties to change the default colors used by the calendar.

@property (nonatomic, copy) NSColor* backgroundColor;  @property (nonatomic, copy) NSColor* textColor;  @property (nonatomic, copy) NSColor* selectionColor;  @property (nonatomic, copy) NSColor* todayMarkerColor;  @property (nonatomic, copy) NSColor* dayMarkerColor;

And the following two properties to set the selected date and the currently displayed month.

@property (nonatomic, strong) NSDate* date;  @property (nonatomic, strong) NSDate* selectedDate;

Also, there is a delegate for the calendar, which is used to send a message when the selected date changed.

@protocol MLCalendarViewDelegate <NSObject>  - (void) didSelectDate:(NSDate*)selectedDate; @end


OSX 日历组件:Calendar-OSX

项目主页:http://www.open-open.com/lib/view/home/1426234218717

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1426234218717.html
Objective-C开发 Calendar-OSX