appgutta / agcalendar Goto Github PK
View Code? Open in Web Editor NEWCalendar module for Titanium
License: Other
Calendar module for Titanium
License: Other
Hey Chris, Ok so not getting any linkage errors and the calendar loads and seems to work in the sense that you can click on the days and they highlight which may be enough for my needs right now. However when you click on one of the events on today's day it exits the simulator. Thanks for getting me a version... appreciate it. If you send me you email address I would love to chat with you
Hey,
is there a way to handle/control the height of the module or/and of the list under the calender? Cause i wanna add things under the calender, and it's 100% height automaticly ... ?
Great calendar. Thanks for adding the ability to detect when the month has changed.
Our app got rejected on the iPad because the calendar was fullscreen instead of in a pop-up. The ability to use a pop-up window / view on the iPad would be great.
Thanks again!
-Jason
Hi guys,
I keep getting this message when I try to add an event in iOS6, it was working fine in iOS5.
defaultCalendarForNewEvents failed: Error Domain=EKCADErrorDomain Code=1013 "The operation couldn’t be completed. (EKCADErrorDomain error 1013.)"
Googled this:
http://stackoverflow.com/questions/12454324/defaultcalendarfornewevents-failed
I've tried using the latest zip file from installation but it seems to be dated 2 months old? However I do see some files were updated recently...can you please update the zip file too as I use it for per project module method?
Thanks!
T
In EventKitDataSource.m,
if ([self checkIsDeviceVersionHigherThanRequiredVersion:@"6.0"]) {
has no else statement so the addEvent: function is a no-op under iOS 4/5.
Hello,
I am trying to use the calendar and display multiple events from a JSON file but these become duplicated in coredata and do not show in eventkit. I have tried using the temp fix to no avail. is there a solution on the way? I am willing to pay if that will help.
Thank you,
Hi,
do you support it ? how complex is it for you to implement this.
it seems weird at least for the appcelerator built-in module not to support such a needed and basic property.
Thank you.
Nadav
Exits with SystemExit: 65
Soeren Damrau - See comment
Chris, great work - thank you!
But I'm missing something like a "removeEvent"-function. Is there a way do delete events when using the coredata data source?
thanks!
Hi Chris
Is it possible to be able to select the calendar the event is added to ?
Also is there a way to output an error messages, on all other modules Ive tried I get an error "No Calendar has been set" when I use the modules on my device, it looks like it could be the same on your module but I can't see a way to output an error
Thanks
Mike
When fetching events from the EventKit your documentation says "When using Core Data your custom identifier is returned, else the auto generated eventIdentifier in EventKit is returned.".
Still the object received contains no identifier...
{"title":"AAA - BBB","startDate":"2013-03-31T15:30:00.000Z","location":"CCC","endDate":"2013-03-31T17:30:00.000Z","alarmOffset":"-86400.000000"}
is the only data i receive when i just JSON.stringify() the returned object.
Hi chris,
Still having the same issue, event identifier never return in fetchEvents
I am using ag.calendar 1.2.8, iphone4s ios 6.1.2. Titanium SDK 3.02.
Thanks
Hello,
i was using your module, that works great, but today i've update to las version you pushed, and now iPad view is different??
i mean, before ipad show opened big on window (like native), but now i just opened like on iphone: small at tope left.
this is a normal behavior??
thanks
Great module - thanks!
Is there an event to attach to that will trigger when the date has changed, or the month navigation has been clicked?
It is great code and view, able to show a certain day with value, min and max, but the display of selected dates is not shown up. Needs to improvement.
Hi Chris,
Since v1.2.5 (v1.2.6 included) I’ve noticed that clicking on different events added previously they are displayed in UITableView with the same title without refreshing correctly. For example, if I add a new event titled "First Event" and then another event titled "Second Event", when you click on these dates both events appear with the same title "Second Event" in TableView. I've tested on iOS 5 and 6 with CoreData datasource and this doesn't happen in previous versions (v1.2.3). In addition, I've verified that this happens with the example provided in the module. The events are added properly and their data is returned correctly in "event:clicked" eventlistener too, but their titles in UITableView are not updated.
Thank you so much for the active support to this module!
Hi,
I ahve found: I have copied the assets folder parallel to ag.calendar.a
Hello,
I am wondering if it is possible to just have the eventkit part? I just want to be able to add events to the native iOS calendar. I don't need any of the other fancy stuff.
Is that possible?
When adding 3 or more events and using EventKit as datasource, the tableview gets duplicated events. A quickfix is added in the example app.js while im working on fixing it.
Hi Chris,
Thanks for your excellent module.Here can able to add the event.So event displaying in the Table.So if user Tap any event how to move event detail page?
Please let me know how to resolve this issue?
With respective native code i can do the following stuff from DidSelectRowIndexPath tableview delegate method.
// Upon selecting an event, create an EKEventViewController to display the event.
self.detailViewController = [[EKEventViewController alloc] initWithNibName:nil bundle:nil];
detailViewController.event = [self.eventsList objectAtIndex:indexPath.row];
// Allow event editing.
detailViewController.allowsEditing = YES;
// Push detailViewController onto the navigation controller stack
// If the underlying event gets deleted, detailViewController will remove itself from
// the stack and clear its event property.
[self.navigationController pushViewController:detailViewController animated:YES];
Thanks,
Hi Chris, I'm testing deleteEvent function and always return this error:
-[SQLDataSource deleteEvent:]: unrecognized selector sent to instance 0xa864380
Example date:longpress event:
var date_clicked = new Date(e.event.date);
Ti.Calendar.addEvent({
title: "Added event",
startDate: date_clicked,
endDate: date_clicked.setHours(date_clicked.getHours()+3),
location: "At home",
identifier: Ti.Calendar.identifier
});
Ti.Calendar.deleteEvent(Ti.Calendar.identifier);
Tested on Titanium v3.0.2 GA and AGCalendar >= v1.2.7 with coredata datasource.
Please, can you fix it?
Thanks
Hello,
I have an application that creates a start date object for say "2012-08-21 17:59:44 +0000"
And when I go and look in the calendar my events are "2012-08-21 18:19:44 +0000"
So somewhere 20 minutes is being added in the module or my iPhone (4 with 5.1.1 btw)
Any idea? I haven't tested it in another phone yet, I'll do that tomorrow and post the results.
Is there anyway to remove the time from the event view? It is showing in 24 hour format and I don't need it to be there. I tried removing it from the source, but I haven't been successful with compiling it. Any advice?
I just downloaded the latest build (with fixes for my other issue #11) and build the module locally. I'm using SDK 2.1.3.v20120915120319. The build works (no errors) and I add the module's zip file to Titanium.
But when I try to run my code using the simulator or build for Distribution, I get the following error:
[INFO] Minimum iOS version: 4.0
[INFO] Performing clean build
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/rossmd/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120915120319/iphone/builder.py", line 1466, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Users/rossmd/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120915120319/iphone/builder.py", line 1221, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/rossmd/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120915120319/iphone/run.py", line 41, in run
sys.exit(rc)
SystemExit: 65
When adding an event with no time, 00:00 -- 06:00 is listed for the time for the event when clicking on a date. Is there anyway to hide the time incase of a fullday event?
I noticed in the code it checks for allDay, but passing this to the event doesn't seem to make a difference.
Eg:
Ti.Calendar.addEvent({
title: "My all day event",
startDate: date,
endDateDate: date,
allDay: true,
});
Thanks for all of the improvements. Very handy library.
Hi Chris,
I was wondering if there is anyway to find and return an event in this module, I've had a quick look and couldn't see anything that stood out to me, is the only way to access the event through an 'event:clicked'..?
I was thinking it might be useful to have a function that could accept an event's identifier and return the details as an array.
Aaron.
How can I get the unique id of the added event from eventkit not coredata?
So, I've been working on this 2.0.RC1 release for a while, and wanted to post a status.
Im sure I've forgot alot of the changes Ive made, but this should be the most important fixes and additions. Im currently working on the last feature before I release it, which is the ability to select which calendar to add the event to (EventKit).
That said, Im really considering submitting this module to the Appcelerator Marketplace, as I've laid down alot of work and time in it. What do you guys think ? Are there anyway to keep it open source, but still get the cash for some beers at the weekends ? ;-)
EKEventViewController
and EKEventEditViewController
for the built-in event viewer/editor.showTable
to hide/show tableView under the calendar. (Default: true)showWeekNum
to hide/show week numbers on the first day of each week. (Default: false)nativeEditor
to use the built in EKEventEditViewController
when clicking events in the table. (Default: true)theme
for easier skinning. (Default: Cal's theme) Fixes #26allDay
to set allDay events (Default: false) Fixes #21, #36event:deleted
which fires when an event is deleted using swipe in the tableview.fetchEvents
so it now responds with the list of events, including identifier. Fixes #38getCalendars()
to get a list of calendars (EventKit)That's right, I need some testers for the updated modules. All testers will get access to a private repository with all the source files.
There will be two modules to test, both compatible with iOS 7. I will be releasing the source for one of the modules, which includes the calendar month view, with some neat features. The other one will be put on the Marketplace and includes a month, week, day and picker view with some added features. Both modules are 100% customizable. Theming, your own custom tableview and so much more.
Testers will get access to the source for both modules.
Hi,
on iPad the view has a width of 320px and is living on the left border. The month text is in the middle of window (outside of calendar ...)
Any ideas?
Rainer
Hi Chris,
When using version 1.2.8, the API call Ti.Calendar.getEvents() always returns null (even when there are more than 100 events previously subscribed for the current year).
Is this a bug?
When do you plan to release the version 2.0 ?
Can't wait ;)
Thanks
Just re-checked this bug on today's latest build in case it was fixed by the latest commit, but still happening. If I include and init the calendar in my app I get the following output from Xcode when the app crashes while running on device:
[DEBUG] Loading: /var/mobile/Applications/ABC7F2D9-5E20-4CEC-B6A4-0CE8D279AC74/Syngency.app/ag.calendar.js, Resource: ag_calendar_js
dyld: lazy symbol binding failed: Symbol not found: _objc_setProperty_nonatomic
Referenced from: /var/mobile/Applications/ABC7F2D9-5E20-4CEC-B6A4-0CE8D279AC74/Syngency.app/Syngency
Expected in: /usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_setProperty_nonatomic
Referenced from: /var/mobile/Applications/ABC7F2D9-5E20-4CEC-B6A4-0CE8D279AC74/Syngency.app/Syngency
Expected in: /usr/lib/libobjc.A.dylib
(tested with Ti SDK 2.1.1.GA and 2.1.3.GA)
If I comment out the calendar and re-build app runs normally. Could I be doing something wrong?
Thanks
Hi Chris,
i am implementing a Calendar application which consists of Month,Week and Day view.Can u please let me know how to show these views.
Also i can able to add events in the calendar.Its displaying in the Table.Then how to show event detail page in this Calendar Module.
Thanks,
Jayaprakash S
Hi Chris, this is more of an issue with Kal - but the shadows and font colours for some titles are hard coded in KalView.m "addSubviewsToHeaderView". Is this something you wish to work on at some stage? or would it be easier to ignore alter individually and recompile based on the project being worked on?
Dan Giulvezan - See comment
Nice job, works great!
Any plans to support recurring events?
Hi,
I have been using your module without any issues for the past 6 months. A couple of days ago, one of my apps that is still in development started coming up with a "Verification Issue- Unlicensed modules(s) detected".... I have tracked it down to this module (I am only using 1 other). I have tried re-installing the module, creating a new project and still the error persists.
Any ideas?
thanks.
no matter where i put the module.. if its on the : ~/Library/Application Support/Titanium/modules/iphone or in /Library/Application Support/Titanium/modules/iphone
also when i put it on the project root
the module is exist but i still get the "[ERROR] Script Error = Couldn't find module: ag.calendar." when i run it o the simulator
i use it on iOS6 SDK and xCode 4.5.1 with the latest Titanium SDK 2.1.3.GA
Hi Chris, I'm testing deleteEvent function and always returns this error:
[SQLDataSource deleteEvent:]: unrecognized selector sent to instance 0x16ca03b0
Example date:longpress event:
calendarView.addEventListener("date:longpress", function(e) {
var date_clicked = new Date(e.event.date);
var endDate = date_clicked;
endDate.setHours(endDate.getHours() + 3);
Ti.Calendar.addEvent({
title : "Added event",
startDate : date_clicked,
endDate : endDate,
location : "At home",
identifier : Ti.Calendar.identifier
});
var event = Ti.Calendar.fetchEvent(Ti.Calendar.identifier);
Ti.API.info("EVENT: " + JSON.stringify(event));
// Error occurs here
Ti.Calendar.deleteEvent(Ti.Calendar.identifier);
setTimeout(function() {
calendarView.selectTodaysDate();
}, 1000);
});
Tested on Titanium v.3.0.2 and AGCalendar >= v.1.2.7. Datasource: coredata.
Can you fix it?
Thanks!
Great module. I was wondering if it would be possible to add Alerts (reminders) to an event that is added? Similar to how you can add one when adding an event in iCal on the phone. Thanks.
Hi Chris, great module.
Is it possible to detect "longclick" event when you select some date? For example, it would be great to have "date:longclick" or "date:longclicked" to add a new event. Also, it could return the selected date like "date:clicked". Would this be very tricky to do?
Thanks and great work!!
Hi,
im using the callback function to execute function on callback, i'm using a remote json to fillup the calendar, so, if user is moving beetween months, i just call the api to load then into the module.
but the callback mont:next and mont:previous is not returning the current date, i'm doing anything wrong??
calendarView.addEventListener("month:previous", function(e) {
Ti.API.info("Going back to previous month");
Ti.API.info(e.event.date);
Ti.API.info(e.source);
});
It would be great to be able to supply a custom TableView row to the module so the list of events on a given day could be stylized, or additional information besides just the event title could be added.
Would this be very tricky to do Chris? Great work on this by the way!
Hello,
i'm wondering if there is a list of apps using this module, or if anyone has encountered a problem when releasing to the appstore??
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.