Thanks, Brent. To start, I would recommend taking the example Picker Widget code from Corona (the one that does a simplified date picker with the months, days 1-31, and the year). I’ll work with the year column for my debugging. I’ve found it easiest to reproduce on my iPhone, since dragging the picker wheel on my laptop’s mouse pad isn’t the easiest. I have gotten it in the simulator, but it’s kinda hard.
Now, there are actually two bugs that I’ve noticed just now while trying to debug this, and maybe they’re related. Here’s the first, where the wheel has stopped spinning and has a valid selection, but note that the selected year column (2009) is not centered within the middle blue bar like a selected column should be. In this case, getValues() is completely valid and matches the black items (October 30, 2009).
The second is the issue I described in my above post, but no item is selected in the column. It’ll look like the image below – everything has stopped scrolling and the column may or may not be centered on a year – but no year will be in the black “selected” font, and getValues returns nil for the third (year) column. It’s probably no help, but I’ve noticed when this bug occurs, the table seems to start scrolling the one direction you scrolled, then jumps back the other direction for no apparent reason.
Here’s what I did to reproduce this:
- Scroll down on the year column. While it’s scrolling, tap the year column.
- Scroll up on the year column. While it’s scrolling, tap the year column.
- Repeat some combination of 1 and 2 until nothing is selected when you tap.
Since I know these repro steps really stink, I’d be happy to try gathering more data from the widget’s private variables if you have any suggestions on what values to grab might be useful. On the off chance I can reproduce this in the debugger (I’ll give it a try tonight), maybe I can leave it running and give you a shout to see what info you might be able to grab from there.