Closed clseva closed 11 years ago
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!
Chris, works fine! Thank you so much
Hi Chris, I'm testing deleteEvent function and always returns this error:
Example date:longpress event:
Tested on Titanium v.3.0.2 and AGCalendar >= v.1.2.7. Datasource: coredata.
Can you fix it? Thanks!