帮酷LOGO
0 0 评论
  • 显示原文与译文双语对照的内容
文章标签:接口  iphone-app  用户  CAL  USE  mac  日历  INT  
MACalendarUI is a project which offers calendar user interface for iPhone applications.

  • 源代码名称:calendar-ui
  • 源代码网址:http://www.github.com/muhku/calendar-ui
  • calendar-ui源代码文档
  • calendar-ui源代码下载
  • Git URL:
    git://www.github.com/muhku/calendar-ui.git
  • Git Clone代码到本地:
    git clone http://www.github.com/muhku/calendar-ui
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/muhku/calendar-ui
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
  • 简介

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

    主分支使用 arc。 如果你不使用 arc,请检查非圆弧分支。

    当前版本包括以下视图:

    MAWeekView

    查看事件的周视图,显示整个星期。 使用视图顶部的箭头或者使用 swipe gesture的导航。 它有两个代理:MAWeekViewDataSource和 MAWeekViewDelegate。 若要在视图中显示事件,MAWeekViewDataSource委托将处理回调到控制器以获取事件数据。 如果你想知道什么时候监听特定事件,请实现MAWeekViewDelegate协议。

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

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

    为了快速启动,请检查实现MAWeekViewDataSource和MAWeekViewDelegate协议的WeekViewExampleController。 本示例从笔尖加载视图,如果你计划创建不带笔尖的视图,则需要为MAWeekView提供一个 CGRect ( initWithFrame )。

    MADayView

    MADayView是显示事件的每日视图。 请查看MADayViewDataSource和MADayViewDelegate协议以获得更详细的详细信息。

    在你自己的项目中使用该类的

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

    整体类依赖项如下所示:

    报告 Bug 和贡献

    对于代码贡献,请在Github中创建一个请求请求。

    对于 Bug,请创建一个Github问题。 我没有时间支持 private 电子邮件,所以获取帮助的最好方法是在Github中进行交互。

    许可证

    文件许可许可的BSD许可证如下所示:

    Copyright (c) 2010-2013 Matias Muhonen <mmu@iki.fi>
    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 上面 copyright
     notice, this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the 上面 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.


    文章标签:INT  proj  USE  mac  用户  接口  CAL  日历  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语