[TIMOB-23195] iOS: Add validation to PickerRow.title
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-04-12T16:51:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Angel Petkov |
Assignee | Angel Petkov |
Created | 2016-04-12T16:48:02.000+0000 |
Updated | 2016-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();
No comments