Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23195] iOS: Add validation to PickerRow.title

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2016-04-12T16:51:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterAngel Petkov
AssigneeAngel Petkov
Created2016-04-12T16:48:02.000+0000
Updated2016-04-12T16:51:22.000+0000

Description

Setting the PickerRow title to a number causes a crash , as there is no field validation. Classic App code to re-produce :
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow({
  exitOnClose: true,
  layout: 'vertical',
  backgroundColor:"white"
});


var data = [];
for(var i=0; i < 10 ; i++){
    data.push(Ti.UI.createPickerRow({title:i}));
}

var picker = Ti.UI.createPicker({
  top:50,
  selectionIndicator: true
});

picker.add(data);
win.add(picker);

win.open();

Comments

No comments

JSON Source