Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2665] [ios] TextField/TextArea: settings maxLength without value on creation crashes

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2012-08-17T13:54:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsmaxlength, textarea, textfield
ReporterMartin Guillon
AssigneeMauro Parra-Miranda
Created2012-08-14T01:24:22.000+0000
Updated2016-03-08T07:41:45.000+0000

Description

https://github.com/appcelerator/titanium_mobile/blob/cdcc6408004f16f3fd9919bfc13b66e176a1713b/iphone/Classes/TiUITextWidget.m This created a crash when you do
var win = Ti.UI.createWindow();
var text = Ti.UI.createTextField({
maxLength:1});
win.add(text);
win.open();
Pull request coming

Comments

  1. Martin Guillon 2012-08-14

    pull request https://github.com/appcelerator/titanium_mobile/pull/2738
  2. Sabil Rahim 2012-08-17

    Pull merged in. Resolving ticket.

JSON Source