No description or website provided.
Objective-C C Python
Latest commit 1473cb7 Oct 6, 2010 @smontgomerie README
Permalink
Failed to load latest commit information.
ArrayExtensions Initial Commit Oct 6, 2010
Calendar Initial Commit Oct 6, 2010
CalendarModule.xcodeproj Initial Commit Oct 6, 2010
Classes Initial Commit Oct 6, 2010
Calendar.h Initial Commit Oct 6, 2010
Calendar.m Initial Commit Oct 6, 2010
CalendarModule_Prefix.pch Initial Commit Oct 6, 2010
CalendarProxy.h Initial Commit Oct 6, 2010
CalendarProxy.m Initial Commit Oct 6, 2010
CalendarViewController.h Initial Commit Oct 6, 2010
CalendarViewController.m
CalendarViewController.xib Initial Commit Oct 6, 2010
KLDateSort.h Initial Commit Oct 6, 2010
KLDateSort.m Initial Commit Oct 6, 2010
LICENSE Initial Commit Oct 6, 2010
README README Oct 6, 2010
README.rdoc README Oct 6, 2010
TiCalendarView.h
TiCalendarView.m Initial Commit Oct 6, 2010
TiCalendarViewProxy.h Initial Commit Oct 6, 2010
TiCalendarViewProxy.m Initial Commit Oct 6, 2010
build.py Initial Commit Oct 6, 2010
manifest
titanium.xcconfig Initial Commit Oct 6, 2010

README.rdoc

Appcelerator Calendar Module

This is a module that displays an iPhone-like calendar widget, based on the work of Keith Lazuka, dba The Polypeptides .

Building


First download the code: git clone git@github.com:smontgomerie/Appcelerator-Calendar-Module.git

cd Appcelerator-Calendar-Module

Then build the code. ./build.py

Install the calendar into your app. cp calendarmodule-iphone-xxx.zip ~/Library/Application\ Support/Titanium/

Finally, in your app's tiapp.xml file: <modules>

	  <module version="xxx">calendarmodule</module>
	</modules>

You'll need to at least touch your iPhone app before including it (assuming you're building with Xcode, not Titanium).

Basic Usage


To add a view:

var calendarView = Ti.Calendar.createView({
    top:0
    /*headerColor: "red",
     calendarColor: "#aaa8a8"*/
});
calendarView.show();
win.add(calendarView);

When a date is selected, a 'dateSelected' event is thrown:

calendarView.addEventListener('dateSelected', function(e) {

try {

// Do something with the date

   	} catch(e) {
        Ti.API.info(e);
    }
});

The component is able to show that there is an event on a certain date with a dot icon. To set which dates are set: var datesArray = [new Date()]; calendarView.setDates(datesArray); You can also use the calendar to save a date (and this needs to be refactored):

calendarView.saveEvent(start, end, event.summary, event.location, event.description);

Note: this requires the EventKit Framework to be included for this to work.

That's pretty much it! Any edits/improvements are appreciated.