Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hsjunnesson/HSAnimatedCalendar

An animated calendar UIViewController for iPhone
https://github.com/hsjunnesson/HSAnimatedCalendar

Last synced: 2 months ago
JSON representation

An animated calendar UIViewController for iPhone

Awesome Lists containing this project

README

        

# HSAnimatedCalendar version 1.0

A `UIViewController` which display an animated calendar display

Created by Hans Sjunnesson ([email protected]). Copyright 2010
Hans Sjunnesson. All rights reserved.

## What's this?

The HSAnimatedCalendarViewController is an iPhone `UIViewController`
which uses timers to update the `UIImageViews` the controller
references. These `UIViews` represent the component parts of a date
and time, or the number of years, days, hours, and seconds left to a
target date.

## How do I set this up?

The HSAnimatedCalendarViewController will load its configuration from
a plist-file with the same name as its nib-file. So for instance, a
HSAnimatedCalendarViewController loaded from the file `CountDown.xib`
will expect to load the file `CountDown.plist` as its configuration.

A proper configuration file looks something like this:





Countdown

CountdownDate
2010-12-24T00:00:00Z
transitionType
fade
transitionSubType
right
transitionDuration
0.25

If the key `Countdown` is set to true, the controller will display the
number of years, months, days, hours and seconds to the date specified
by the key `CountdownDate`. If the key `Countdown` isn't set, the
controller will display the current date and time, and animate the
view as time progresses.

The key `transitionType` dictates the type of `CATransitions` applied
to the animated numbers. The allowed values are: `fade`, `moveIn`,
`push`, and `reveal`. These are the standard `CATransition` types.

The `transitionSubType` dictates the subtype of the `CATransition`, of
which the following are supported: `right`, `left`, `top`, and
`bottom`

## License

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see
.