{ "id": "153384", "key": "TIMOB-20047", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-27T16:48:47.000+0000", "created": "2015-11-23T15:03:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-5.4.0", "regression" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "49936", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "79618", "key": "TIMOB-5186", "fields": { "summary": "iOS: Feature Request to Add TextField hintTextColor and Size attributes", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-08-01T11:27:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I know TIMOB-5186 was resolved by adding {{attributedHintText}} but I still think it would be good to have parity with {{hintTextColor}} on Android so this common use case is simpler to implement.", "attachment": [], "flagged": false, "summary": "Parity: iOS support for hintTextColor", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.0.GA", "closedSprints": [ { "id": 627, "state": "closed", "name": "2016 Sprint 10 SDK", "startDate": "2016-05-07T00:43:56.954Z", "endDate": "2016-05-21T00:43:00.000Z", "completeDate": "2016-05-23T02:06:04.349Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "376032", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Not agreeing completely, here. Android used a color value for the {{hintTextColor}} property. iOS expects an {{Ti.UI.AttributedString}} for the {{attributedHintText}} property. So either we deprecate {{hintTextColor}} on Android and introduce the {{attributedHintText}} property, or we leave it like it is. What do you think [~fokkezb]?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-04T19:29:45.000+0000", "updated": "2016-02-04T19:29:45.000+0000" }, { "id": "376098", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "From a developer experience perspective I still prefer to have hintTextColor for iOS as we have with Android. The attributedHintText is a lot more work, in particular if you need to change the text.\r\n\r\nhttp://stackoverflow.com/a/21074761/4626813", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-05T07:29:13.000+0000", "updated": "2016-02-05T07:29:13.000+0000" }, { "id": "385720", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7999", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-14T11:19:12.000+0000", "updated": "2016-05-14T11:19:12.000+0000" }, { "id": "387991", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, iOS now supports hintTextColor.\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160608165242\r\nAppc Studio: 4.6.0.201605201934\r\nAppc NPM: 4.2.7-2\r\nApp CLI: 5.4.0-15\r\nXcode 7.3\r\nNode v4.2.6\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-09T23:37:21.000+0000", "updated": "2016-06-09T23:37:49.000+0000" }, { "id": "391478", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "My app is crashing with\r\n{code:java}\r\nmessage = \"-[NSNull length]: unrecognized selector sent to instance 0x10bc3cd80\";\r\n{code}\r\nwhen I set my TSS to:\r\n{code:java}\r\n\"TextField\" : {\r\n\tfont: Alloy.CFG.font.regular,\r\n\thintTextColor: Alloy.CFG.color.lightgrey,\r\n\tcolor: Alloy.CFG.color.darkgrey,\r\n\theight:40,\r\n\tbackgroundColor: \"transparent\"\r\n}\r\n{code}\r\n\r\nremoving the hintTextColor and the crash is gone.\r\n\r\ntested with SDK: 5.4.0.v20160720201924\r\n\r\nIt's working fine in 5.3.1.GA (hintTextColor for iOS not available)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-26T06:47:51.000+0000", "updated": "2016-07-26T06:47:51.000+0000" }, { "id": "391482", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Valid issue! The API breaks, if you do not specify a hintText, but a hintTextColor, since the latter depends on the former one.\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/8156\r\nPR (5_4_X): https://github.com/appcelerator/titanium_mobile/pull/8157\r\n\r\nAlso fixing a case where the hintText is changed afterwards and haven't been applied to the hintTextColor.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-26T07:35:22.000+0000", "updated": "2016-07-26T07:35:22.000+0000" }, { "id": "391698", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, I was able to reproduce the error by removing the hintText property with an earlier 5.4.X build. With the latest build the app no longer crashes. Also verified the case in which hintText is changed and hintTextColor is not applied. \r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device & iPhone 6 Plus (8.3) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160727094731\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-34\r\nXcode 7.3\r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-27T17:37:08.000+0000", "updated": "2016-07-27T17:37:08.000+0000" }, { "id": "392101", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "There seems to be another issue in relation with alloy, hintTextColor and an int hintText!\r\n\r\nwhile this is working fine now:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:\"#fff\"\r\n});\r\nvar tf = Ti.UI.createTextField({\r\n hintText: \"123\",\r\n hintTextColor: \"red\",\r\n borderWidth:1,\r\n borderColor:\"#000\",\r\n width:40\r\n});\r\nwin.add(tf);\r\nwin.open();\r\n{code}\r\n\r\nThere is a problem with an alloy hintText, that contains only an int value:\r\n{code:javascript}\r\n$.index.open();\r\n{code}\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n{code:javascript}\r\n\"#tf_name\": {\r\n\thintTextColor: \"red\"\r\n}\r\n{code}\r\n\r\nIt works when you either remove the hintTextColor, remove the hintText or add a character into the hintText.\r\nSetting the hintText to \"123\" in the non-alloy example works fine, too!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-01T09:12:11.000+0000", "updated": "2016-08-01T09:12:11.000+0000" }, { "id": "392103", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~michael] Thanks! That case is fixed in:\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/8183\r\n5_4_X: https://github.com/appcelerator/titanium_mobile/pull/8184\r\n", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-01T09:23:05.000+0000", "updated": "2016-08-01T09:23:05.000+0000" }, { "id": "392109", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "fix is working fine now with a number only hintText! Thanks for the quick PR", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-01T11:27:12.000+0000", "updated": "2016-08-01T11:27:12.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }