{ "id": "139590", "key": "TIMOB-19168", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-07-08T22:16:56.000+0000", "created": "2014-11-12T13:12:34.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupportTriage", "attributedString", "label", "text" ], "versions": [], "issuelinks": [ { "id": "49067", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "151408", "key": "ALOY-1306", "fields": { "summary": "AttributedString proxy property doesn't work if there's whitespace", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T19:55:42.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The [documentation says|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Label-property-attributedString] a Label's {{text}} property will be ignored if {{attributedString}}. However, the following test case shows it's not:\r\n\r\nh1. Test case\r\nRemove the comments before line #7 and the label will say \"Text\".\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: '#ddd',\r\n});\r\n\r\nwin.add(Ti.UI.createLabel({\r\n top: 100,\r\n // text: 'Text',\r\n attributedString: Ti.UI.createAttributedString({\r\n text: 'Attributed String',\r\n attributes: [{\r\n type: Ti.UI.iOS.ATTRIBUTE_FOREGROUND_COLOR,\r\n value: 'red',\r\n range: [0, 10]\r\n }]\r\n })\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\nThe same might also be true for the {{value}} property of {{TextArea}} and {{TextField}}.", "attachment": [], "flagged": false, "summary": "iOS: attributedString does not override text property like documented", "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": "3.4.1.RC", "comment": { "comments": [ { "id": "356938", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Possible fix is to manually check the attributedString property in the TiUILabel.m:\r\n\r\n{code}\r\n// Skip text property, when attributedString is set.\r\nif([[self proxy] valueForKey:@\"attributedString\"] != nil) {\r\n return;\r\n}\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-05T15:30:30.000+0000", "updated": "2015-07-05T15:31:03.000+0000" }, { "id": "423723", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cannot reproduce in latest versions of the SDK, so it was probably fixed during moving from the Ti.UI.iOS to the parity Ti.UI namespace.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-08T22:16:56.000+0000", "updated": "2017-07-08T22:16:56.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }