Affects Version/s: Release 3.1.2
Fix Version/s: None
Ti SDK 3.1.2.GA (Tested also on 3.1.1.GA)
Tested on Multiple Android Devices (Samsung Galaxy S4, Samsung Galaxy S3, Nexus 7, LG L5, Motorola Razr, Nexus 4)
Tested on Multiple Android Versions (4.0, 4.1, 4.2, 4.3)
When you add multiple Pickers inside a TableView (one picker per row), they get very buggy after scrolling the screen.
What I have noticed is that some previously selected pickerView options just disappear, or the options are changed randomly.
In the testcase I'm submitting I'm using the same options for different pickerviews, but if the options are different the problem get even worse.
I have also found out that If I set a className to each different pickerView ROW the problem vanishes. Problem is that it seems that there is a limit of 32 classNames, past that and the app crashes (which is a big problem as I'm building dynamic forms and some forms reach 50+ questions).
Also, by setting a different className to each row, you lose the tableView optimization.
1. Create a new mobile Project (Classic Titanium)
2. Paste the code into app.js
3. Run it in a device
4. In question 0, put answer 0, in question 1, answer 1 and so on.
5. Scroll down and up.
6. You will see your answers changed.
In the logs I can see this:
when scrolling the tableview.