Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3365] iOS: Cannot set an empty array for the picker rows

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-08T22:43:31.000+0000
Affected Version/sRelease 1.6.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterBalint Erdi
AssigneeIngo Muschenetz
Created2011-04-15T03:43:19.000+0000
Updated2017-06-08T22:43:31.000+0000

Description

The below code snippet dies a horrible death:

    var rows = [];
    var picker = Ti.UI.createPicker();
    picker.add(rows);

I think it should be possible to set an empty array as the rows. I realize it does not make too much sense but one could e.g add rows later to the picker. It's unexpected that the application crashes, in my opinion.

Comments

  1. Lee Morris 2017-06-08

    Closing ticket as there has been no input for the last 6 years. Any problems, please file a new ticket.

JSON Source