是否有用于创建日历的类或库? [英] Is there a class or library for creating calendars?

查看:91
本文介绍了是否有用于创建日历的类或库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程式需要一个日历,让使用者可以从中选择日期。

I need a calendar in my app where the user can pick a date from. I wonder if there's a calendar library to do something like this?

推荐答案

您有没有在Foundation中查看NSCalender类的文档?我怀疑NSCalender类将实际上绘制出来或管理一个日历你的图形,但它似乎提供了功能,以帮助计算像闰年等头痛。我没有使用这个类,但我已经玩过NSDate,这是非常方便。可能存在一个类,可以帮助你绘制/布局图形日历虽然... [更新] 我发现一个教程,有人从Google代码修改日历项目创建日历,然后解释如何他做到了。查看以下链接:

Have you checked out the documentation on the NSCalender class in Foundation? I doubt that the NSCalender class will actually draw out or manage a calender for you graphically but it appears to provide functionality to help with the headache of calculating things like leap-years and such. I have not used this class myself yet but I have played around with NSDate and it is very convenient. There might exist a class that can help you draw / layout a graphic calender though... [Update] I found a tutorial where someone modified a calender project from Google Code to create a calender and then explained how he did it. See these links:

指南:

http://blog.webscale.co.in/?p=244

原始Google程式码专案(KLCalender Class)

http://code.google.com/p/kcalendar- iphone /

ORIGINAL GOOGLE CODE PROJECT (KLCalender Class)
http://code.google.com/p/kcalendar-iphone/

参考:

http://developer.apple.com/iphone/library/documentation/cocoa/Reference/Foundation/Classes/NSCalendar_Class/参考/ NSCalendar.html

DATE&时间编程指南:

http: //developer.apple.com/iphone/library/documentation/cocoa/Conceptual/DatesAndTimes/DatesAndTimes.html

DATE & TIMEPROGRAMMING GUIDE:
http://developer.apple.com/iphone/library/documentation/cocoa/Conceptual/DatesAndTimes/DatesAndTimes.html

这篇关于是否有用于创建日历的类或库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆