{ "id": "154110", "key": "ALOY-1345", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "17081", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17627", "name": "alloy 1.7.31", "archived": false, "released": true, "releaseDate": "2016-01-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-01T17:11:20.000+0000", "created": "2016-01-04T21:20:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "attributedString" ], "versions": [ { "id": "17582", "name": "alloy 1.7.30", "archived": false, "released": true, "releaseDate": "2015-12-17" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2016-02-02T22:26:20.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h6.Issue Description\r\nUsing Attributed String for label in Alloy, it is not showing up in iOS. Where as the same is working properly for Android and in classic. \r\n\r\nh6.Steps to reproduce\r\n//Alloy \r\n# Create a new simple project application in alloy\r\n# Open the index.xml view\r\n# Add the next Label: \r\n{code}\r\n\t\r\n{code}\r\n# Open the index.tss Style \r\n# Add the next style: \r\n{code}\r\n\".as\" : { \r\n\tattributes: [ \r\n\t\t{ \r\n\t\t\ttype: Ti.UI.ATTRIBUTE_FOREGROUND_COLOR, \r\n\t\t\tvalue: 'red', \r\n\t\t\trange: [0, 4] \r\n\t\t} \r\n\t] \r\n} \r\n{code}\r\n# Run\r\n\r\n// Classic (Working project)\r\n# Create a new cassic default application project\r\n# Open the app.js file\r\n# Replace the content with the next code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: \"white\"\r\n});\r\n\r\nvar attr = Titanium.UI.createAttributedString({\r\n text: \"Appcelerator Rocks\"\r\n});\r\n\r\n// Underlines text\r\nattr.addAttribute({\r\n\ttype: Ti.UI.ATTRIBUTE_FOREGROUND_COLOR, \r\n\tvalue: 'red', \r\n\trange: [0, 4] \r\n});\r\n\r\nvar label = Titanium.UI.createLabel({\r\n left: 20,\r\n right: 20,\r\n height: Titanium.UI.SIZE,\r\n attributedString: attr\r\n});\r\n\r\nwin.add(label);\r\n\r\nwin.open();\r\n\r\n{code}\r\n# Run", "attachment": [ { "id": "57923", "filename": "iphone6.png", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-09T02:22:59.000+0000", "size": 88358, "mimeType": "image/png" }, { "id": "57922", "filename": "phone5.png", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-09T02:22:59.000+0000", "size": 106476, "mimeType": "image/png" }, { "id": "57919", "filename": "Screen Shot 2016-01-08 at 3.52.13 PM.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-08T23:58:36.000+0000", "size": 63284, "mimeType": "image/png" }, { "id": "57924", "filename": "Screen Shot 2016-01-08 at 7.14.19 PM.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-09T03:20:10.000+0000", "size": 177220, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS Attributed Strings are not showing", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS Simulator 8.2\r\niOS Simulator 9.2\r\nXcode 7.2\r\nTitanium SDK 5.1.1GA", "closedSprints": [ { "id": 571, "state": "closed", "name": "2016 Sprint 01 Tooling", "startDate": "2016-01-04T21:10:00.000Z", "endDate": "2016-01-15T21:10:00.000Z", "completeDate": "2016-02-01T17:31:00.734Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "373769", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/748\r\nTest: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-961", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-05T00:30:52.000+0000", "updated": "2016-01-05T00:30:52.000+0000" }, { "id": "373822", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-05T17:27:13.000+0000", "updated": "2016-01-05T17:27:13.000+0000" }, { "id": "374121", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Are you setting the Label color somewhere in tss? What do you see if you remove that? ", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-08T22:53:19.000+0000", "updated": "2016-01-08T22:53:19.000+0000" }, { "id": "374122", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Even removing the label color the attributed strings are not showing, but after some additional testing, I realized that this is only happening in iphone 6 and this is not happening on iPhone 5. ", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-08T23:29:43.000+0000", "updated": "2016-01-08T23:29:43.000+0000" }, { "id": "374123", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~rramirez], this is what i get.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-08T23:58:49.000+0000", "updated": "2016-01-08T23:58:49.000+0000" }, { "id": "374127", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is what I get on iphone 5 and iphone 6S, I am using iOS simulator 9.2.", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-09T02:23:33.000+0000", "updated": "2016-01-09T02:23:33.000+0000" }, { "id": "374129", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~rramirez], it still works on my end.\r\nTi SDK version 6.0.0.v20160107130337", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-09T03:21:19.000+0000", "updated": "2016-01-09T03:24:44.000+0000" }, { "id": "374392", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have tested with [~egomez] and he the result is the same, what we are doing to test is update the alloy version using \r\n\r\nsudo npm install -g alloy@1.7.31\r\n\r\nchange the alloy version in tiapp.xml clean and build. \r\n\r\nplease let me know if we are missing something we are using the SDK 6.0.0.v20160111204825", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-13T09:18:07.000+0000", "updated": "2016-01-13T09:18:07.000+0000" }, { "id": "375787", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.3 (15D21)\r\nStudio 4.5.0.201601262138\r\nTi SDK 5.2.0.v20160202103508\r\nAppc NPM 4.2.3-1\r\nAppc CLI 5.2.0-239\r\nAlloy 1.7.33\r\nXcode 7.2 (7C68)\r\n\r\nAttributed strings are working as expected in Alloy projects. Tested using provided samples and simple modifications to the default sample app.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-02T22:26:20.000+0000", "updated": "2016-02-02T22:26:20.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }