Git Product home page Git Product logo

agcalendar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

agcalendar's Issues

Clicking event crashes the app

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

All-day event

Is it possible to create an all-day event, with just date and no time?

all-day

Control height of the list?

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 ... ?

iPad support

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

iOS6: Can't add new event

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

Issue with Displaying multiple events from datasource

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,

Add attendees to event

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

Delete events

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!

Feature Request

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

no identifier supplied in answer from fetchEvents

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.

ipad view changed?

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

Event titles in UITableView

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!

Slim version?

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?

3 or more events causes duplication

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.

How to move Event detail page after user select particular event?

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,

deleteEvent error

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

For some reason my events get 20 minutes added to them?

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.

Remove Time from Event View

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?

Error building in Ti Studio

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

allDay support for events

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

Screen Shot 2013-03-11 at 12 51 25 PM

Thanks for all of the improvements. Very handy library.

Find and return a stored Event.

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.

2.0RC1

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

  • Added EKEventViewController and EKEventEditViewController for the built-in event viewer/editor.
  • Added showTable to hide/show tableView under the calendar. (Default: true)
  • Added showWeekNum to hide/show week numbers on the first day of each week. (Default: false)
  • Added nativeEditor to use the built in EKEventEditViewController when clicking events in the table. (Default: true)
  • Added theme for easier skinning. (Default: Cal's theme) Fixes #26
  • Added allDay to set allDay events (Default: false) Fixes #21, #36
  • Added event:deleted which fires when an event is deleted using swipe in the tableview.
  • Fixed fetchEvents so it now responds with the list of events, including identifier. Fixes #38
  • Added getCalendars() to get a list of calendars (EventKit)
  • Added multiple dots to show how many events pr. date
  • Events now sorted by ascending order, by hour.
  • CalendarView tile-height set to 35, compared to 44 earlier. This gives better space below for the tableview.
  • Fixed #35 #issuecomment-14710880
  • Huge performance improvements

I need testers!

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.

iPad

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

Ti.Calendar.getEvents() returns null

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

Device app crashing due to /usr/lib/libobjc.A.dylib

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

How to show WeekView and Day View using AGCalendar Module?

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

week day titles and header title shadows are hard coded.

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?

Verification Issue

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.

Couldn't find module: ag.calendar

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

deleteEvent error

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!

Alert (Reminder) option for Events

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.

Longclick event

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!!

month:previous not returning data

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

Customization of event tableview rows

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.