[TIMOB-10893] iOS:Label with empty text field causes app to crash.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-09-13T21:02:31.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-ios090112 |
Reporter | Shyam Bhadauria |
Assignee | Neeraj Gupta |
Created | 2012-09-13T06:47:18.000+0000 |
Updated | 2017-03-09T21:30:59.000+0000 |
Description
This is not a regression. It also happens on 2.1.2.
App do not crashes on iOS 5.1
Steps to reproduce:
1. Use the app below
var win = Ti.UI.createWindow({backgroundColor:'red'});
var label1 = Titanium.UI.createLabel({
color:'#999',
text:"",
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
//uncomment below line, it will not crash on iOS 6
//label1.text = 'Hi'
win.add(label1);
win.open();
2. Run the app on iOS 6.
Expected result:
2. App should display a blank red window
Actual result:
2. App crashes.
Duplicate of TIMOB-10810.
Closing ticket as duplicate.