Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A heavy modified version of Appcelerator Calendar Module that would allow you to display event from a JSON source instead of via EventKit, plus more effects on date selection. At the moment, the module is very dirty, I am going to clean up and update the README when I have time.
Objective-C Python C Other
branch: master

This branch is 29 commits ahead of smontgomerie:master

Failed to load latest commit information.
ArrayExtensions Hack setDate
Calendar Added jumpToday
CalendarModule.xcodeproj Added jumpToday
Classes
example Added jumpToday
.gitignore
Calendar.h Initial Commit
Calendar.m Total cleanup
CalendarModule_Prefix.pch Initial Commit
CalendarProxy.h
CalendarProxy.m Initial Commit
CalendarViewController.h
CalendarViewController.m Total cleanup
CalendarViewController.xib Initial Commit
KLDateSort.h Hack setDate
KLDateSort.m Total cleanup
LICENSE Hack setDate
README.md
TiCalendarView.h Added jumpToday
TiCalendarView.m
TiCalendarViewProxy.h
TiCalendarViewProxy.m Added jumpToday
build.py Hack setDate
com.company.calendar-iphone-0.1.zip Added jumpToday
manifest Total cleanup
module.xcconfig -upgrade build script for Titanium Mobile 1.7.5
run.sh Bumped titanium sdk to 1.8.0.1
titanium.xcconfig

README.md

= Appcelerator Calendar Module Reloaded

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

This version is forked from Scott Montgomerie's original code with fixes.

== Building

First download the code: git clone git@github.com:joneslee85/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/

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);

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

Something went wrong with that request. Please try again.