{ "id": "119728", "key": "TIMOB-16054", "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": null, "resolutiondate": null, "created": "2013-09-09T23:15:00.000+0000", "priority": null, "labels": [ "ios", "reprod" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:28.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When using the debug option in the iPhone simulator I found that (all) my Titanium Labels show up as Color Blended Layers, even though I set the backgroundColor and explicitly set the opacity to 1.\r\n\r\n{code}\r\nvar pageView = Ti.UI.createView({\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n backgroundColor: '#FFFFFF'\r\n});\r\n\r\n var text = Ti.UI.createLabel({\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.SIZE,\r\n top: 100,\r\n left: 49,\r\n right: 10,\r\n textAlign: \"left\",\r\n text: \"some text\",\r\n opacity: 1,\r\n backgroundColor: '#FFFFFF'\r\n });\r\n pageView.add(text);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Titanium Label shows up as Blended Layer in iOS simulator", "creator": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 3.1.2GA, Alloy 1.2.1 and iOS 6.1.3", "comment": { "comments": [ { "id": "271700", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nCan you post test code and test case for this issue that we can reproduce? \r\nThanks \r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-18T08:34:34.000+0000", "updated": "2013-09-18T08:34:34.000+0000" }, { "id": "271720", "author": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is easy to reproduce - just create a new Alloy based project in Studio (no need to edit anything) and run in iPhone or iPad Simulator. Under the Debug menu in the Simulator enable \"Color Blended Layers\" and you will see the \"Hello World\" label be colored in red (a blended layer). All labels in all apps will be the same. Apple recommends that an app should not have any blended layers if max performance is a priority, with labels we do not seem to have a choice.", "updateAuthor": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T12:00:30.000+0000", "updated": "2013-09-18T12:00:30.000+0000" }, { "id": "273730", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "setting backgroundColor and opacity to 1 is not enough.\r\n\r\nwe need access to the OPAQUE property for UILabel (at least) which is set to NO by default in this case (need to be confirmed).\r\n\r\nI saw the same problem with custom Cell Layout having UILabel. Blended Layers could be a problem in scrollView.\r\n\r\nan exemple of Color Blended Layers Impact:\r\nhttp://blogs.captechconsulting.com/blog/john-szumski/performance-tuning-older-ios-devices\r\n\r\n\r\nShall I open another ticket ?\r\n", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-10-03T10:30:52.000+0000", "updated": "2013-10-03T10:54:46.000+0000" }, { "id": "273776", "author": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I asked the question on Stack Overflow and I got an answer that a Label is a TiView containing a UILabel with a clear background.\n\nTiUILabel.m line 147:\n\nlabel.backgroundColor = [UIColor clearColor];\n", "updateAuthor": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-03T22:19:16.000+0000", "updated": "2013-10-03T22:19:16.000+0000" }, { "id": "273777", "author": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not sure why Mostafizur Rahman set this ticket as Resolved when it is not.\n\nMaybe it is best to open a new ticket and refer to this one.\n", "updateAuthor": { "name": "lpjandersson", "key": "lpjandersson", "displayName": "Lars Andersson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-03T22:20:49.000+0000", "updated": "2013-10-03T22:20:49.000+0000" }, { "id": "273798", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "a starting point:\nI have implemented a setBackgroundColor_: in TiUILabel.m\n\ntest case : \nin app.js:\ncreate a label with a backgroundColor property. \ncreate a label without a backgroundColor property. \n\nand check with the simulator.\n\nresult: there is no Blended Layer for the Label with a backgroundColor property. \n\nimplementation in TiUILabel.m:\n{code}\n\n\n-(void)setBackgroundColor_:(id)color\n{\n\tif ([color isKindOfClass:[UIColor class]])\n\t{\n [self label].backgroundColor = color;\n\t\tsuper.backgroundColor = color;\n\t}\n\telse\n\t{\n\t\t//TiColor *ticolor = [TiUtils colorValue:color];\n UIColor * aColor =[[TiUtils colorValue:color] _color];\n \n [self label].backgroundColor = aColor;\n\t\tsuper.backgroundColor = aColor;\n\t}\n}\n\n\n{code}", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-10-04T13:11:08.000+0000", "updated": "2013-10-04T13:11:08.000+0000" }, { "id": "274759", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe have not heard back from you since our last update. Please let me know if the issue has been resolved and if this issue can be closed. However, you can reopen the ticket when you need.\r\n\r\nThanks ", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-10-11T05:47:34.000+0000", "updated": "2013-10-11T05:47:34.000+0000" }, { "id": "284334", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Moving this to engineering as we can reproduce the problem with 3.1.3 GA SDK.\r\n\r\nh5. Testing Environment\r\nOS: MAC OX X 10.8.5\r\niOS SDK: 7.0,Xcode 5\r\niOS Simulator: 7.0\r\nTi SDK: 3.1.3 GA\r\n\r\nh5. Test Code \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout : 'vertical',\r\n\tbackgroundColor : '#fff'\r\n});\r\nvar pageView = Ti.UI.createView({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL,\r\n\tbackgroundColor : '#FFFFFF'\r\n});\r\n\r\nvar text = Ti.UI.createLabel({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE,\r\n\ttop : 100,\r\n\tleft : 49,\r\n\tright : 10,\r\n\ttextAlign : \"left\",\r\n\ttext : \"some text\",\r\n\topacity : 1,\r\n\tbackgroundColor : '#FFFFFF'\r\n});\r\npageView.add(text);\r\n\r\nwin.add(pageView);\r\nwin.open();\r\n\r\n{code}\r\n\r\nh5. Step to reproduce\r\n\r\n# Create new Titanium project \r\n# Update app.js file with above code\r\n# Run on IOS simulator \r\n# Activate Color Blended Layers (Under the Debug menu in the Simulator enable \"Color Blended Layers\")\r\n# All labels in this app will be red color\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-14T07:34:06.000+0000", "updated": "2013-12-20T07:22:47.000+0000" }, { "id": "423856", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 6 Simulator (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-10T23:19:36.000+0000", "updated": "2017-07-10T23:19:36.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }