Appgutta / AGCalendar

Calendar module for Titanium
Other
80 stars 25 forks source link

Event titles in UITableView #23

Open clseva opened 11 years ago

clseva commented 11 years ago

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!

aaronce commented 11 years ago

Hi Chris, I'm also getting this issue - the events are created on different dates correctly but the titles and other information seem to copy across..

on closer inspection placing a onclick "event:clicked" reveals that the data is actually stored correctly though, so it seems to be more of a UI issue.

also thanking you for an outstanding module!

ChrisRM commented 11 years ago

I got the same result, but don't have time to fix it just yet. I'll have a look later today.

ChrisRM commented 11 years ago

Had a hard time figuring out this one. Try it out and let me know how it goes.

aaronce commented 11 years ago

Brilliant, works perfectly now. I also tried to look under the hood on this but couldn't find the issue. Thanks a lot Chris.

clseva commented 11 years ago

Chris, excellent work. It works with added events properly now.

I'm sorry to bother you more, but just missing to fix it when deleting with "swipe-to-delete". Using the same example, if you delete a second event added, the first event dissapears in tableview. Only reloading or clicking on next/previous month, events appear in tableview updated correctly.

Thank you so much for the hard work.

ChrisRM commented 11 years ago

Looking into it.. :-) thanks for testing guys.

ChrisRM commented 11 years ago

Hmm, im not able to reproduce this one. Provide me with some sample code, and I'll fix it asap

clseva commented 11 years ago

Hi Chris, see sample code: https://gist.github.com/4501042

And a video example (I'll delete it at the end): http://youtu.be/R6iHIvplSnM

ChrisRM commented 11 years ago

Nice job, let it stay for a while so I can have a look when im finished at work.

clseva commented 11 years ago

Hi Chris, Have you been able to take a look at it?

Thanks a lot.

ChrisRM commented 11 years ago

I'll see what I can do this weekend. Quite busy atm.

ChrisRM commented 11 years ago

Fixed in release 2.0