master allows you customize it without using Three20. It uses Nimbus, so it’s good idea to use Nimbus CSS for styling.
Note that README right now is a bit out of date and applies mostly to three20 branch, however the demo and tests are up-to-date.
While there are existing implementations (Kal and TKCalendarMonthView from Tapku Library, they are quite limited. In particular they both replicate styling and functionality of iPhone Calendar app and there is basically no easy way to adjust them. In addition to this – only portrait view is supported in them.
ios-calenar was developed to solve aforementioned problems. It’s default design is heavily inspired by MoMa iPhone app.
While not elegant at all, currently the best method to add ios-calendar to your project is just to drop its source code in it (from “Calendar” group).
It is possible to use it as dependency, but only when your project doesn’t itself use Three20. Otherwise build results in XCode crash. I’m looking for suggestions on how better to resolve this issue.
Usage sample
XCode project on GitHub contains sample target – CalendarDemo. Here are main highlights:
Code is distributed under MIT license, attribution is appreciated:
Copyright (C) 2011 by Componentix
http://www.componentix.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
请发表评论