MACalendarUI 1.1.0

MACalendarUI 1.1.0

测试已测试
语言语言 Obj-CObjective C
许可证 BSD
发布上次发布2014年12月

Matias Muhonen 维护。



  • Matias Muhonen

介绍

MACalendarUI 是一个项目,为 iPhone 应用程序提供日历用户界面。

主分支使用 ARC。如果您不使用 ARC,请切换到 non-arc 分支。

当前版本包括以下视图

MAWeekView

MAWeekView 是一个用于查看事件并显示整个星期的视图。使用视图顶部的箭头或使用滑动手势进行导航。它有两个代理:MAWeekViewDataSource 和 MAWeekViewDelegate。要显示视图中的事件,MAWeekViewDataSource 代理处理到控制器的回调以获取事件数据。如果您想知道何时和特定事件按下,请实现 MAWeekViewDelegate 协议。

MAWeekView 的内部视图层次结构如下

MAWeekView
  |
  |-- MAEventGridView           (all-day events)
  |     |
  |     |--- MAEventView        (events)
  |
  |
  |-- UIScrollView
        |
        |--- MAGridView
        |      |
        |      --- MAEventView   (events)
        |
        |--- MAHourView
        |
        |--- MAWeekdayView

要快速开始,请检查实现 MAWeekViewDataSource 和 MAWeekViewDelegate 协议的 WeekViewExampleController。此示例从 NIB 加载视图,如果您计划不使用 NIB 创建视图,您需要为 MAWeekView 提供一个 CGRect (initWithFrame)。

MADayView

MADayView 是一个用于显示事件的视图。请参见 MADayViewDataSource 和 MADayViewDelegate 协议以获取更多详细信息。

在自己的项目中使用类

只需将 Classes/Views/* 和 Resources/Images/* 复制到您自己的项目中。

整体类依赖关系如下

报告错误和贡献

您的贡献最受欢迎。如果您想要发送代码,请发送补丁并确保它可以合并到主分支而不会发生冲突。

如果您有任何问题,可以使用电子邮件。

许可证

文件许可的 BSD 许可证允许如下:

Copyright (c) 2010-2013 Matias Muhonen <[email protected]>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
   derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.