Great! I’ve been meaning to write a bug report about this issue, but haven’t gotten around to it.
As Danny is active on this thread, maybe this post will be enough?
If you put a print statement in the onRender function of the Corona TableView2 sample code you’ll see that isCategory=nil is being passed to the handler as the last event.
I don’t know, I used ingemar’s solution and its been working for me so far. I’m afraid to go to 1093 because we should be launching soon and I don’t have time to deal with any new bugs at the moment. Print out the value of event.row.isCategory and if its nil when you get the error, then the issue still exists. Seeing if row.isCategory AND row.isCategory == nil before adding the category is what I used for a work around, look at my post above and let me know if that solves the isssue for now.
This happens only if the first row in the tableview is a category.
Sometimes you’ll see that event.row.isCategory is nil when passed to your handler (instead of true/false).
As a test you can scroll the tableview down with your finger. The category text will become visible, but as soon as the tableview retracts to its default position the category text will disappear.
You can get around the issue by handling the nil exception.
Great! I’ve been meaning to write a bug report about this issue, but haven’t gotten around to it.
As Danny is active on this thread, maybe this post will be enough?
If you put a print statement in the onRender function of the Corona TableView2 sample code you’ll see that isCategory=nil is being passed to the handler as the last event.
I don’t know, I used ingemar’s solution and its been working for me so far. I’m afraid to go to 1093 because we should be launching soon and I don’t have time to deal with any new bugs at the moment. Print out the value of event.row.isCategory and if its nil when you get the error, then the issue still exists. Seeing if row.isCategory AND row.isCategory == nil before adding the category is what I used for a work around, look at my post above and let me know if that solves the isssue for now.