{ "id": "120845", "key": "TIMOB-15436", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15940", "description": "2014 Sprint 07 SDK", "name": "2014 Sprint 07 SDK", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-08T20:35:58.000+0000", "created": "2013-10-06T21:50:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_slider", "qe-closed-3.3.0", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-24T06:57:04.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 manually updated TiUiSwitch.m to have the ability to set the onTintColor of the Ti.UI.Switch component.\r\n\r\nA simple Modification:\r\n{code}\r\n-(void)setOnTintColor_:(id)color\r\n{\r\n \r\n if ([color isKindOfClass:[UIColor class]])\r\n {\r\n \r\n [[self switchView] setOnTintColor:color ];\r\n \r\n }\r\n else\r\n {\r\n TiColor *ticolor = [TiUtils colorValue:color];\r\n [[self switchView] setOnTintColor: [ticolor _color ] ];\r\n \r\n }\r\n}\r\n{code}\r\n\r\nand in Ti Code:\r\n{code}\r\nvar aSwitch = Ti.UI.createSwitch({value:true, onTintColor:'#282828'});\r\n{code}\r\n\r\nand that should do it.", "attachment": [], "flagged": false, "summary": "iOS: Support onTintColor for Ti.UI.Switch", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": "Ti SDK 3.1.3", "comment": { "comments": [ { "id": "274341", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "refers to http://developer.appcelerator.com/question/158104/tiuiswitch-ios7-color", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-10-09T09:13:33.000+0000", "updated": "2013-10-09T09:13:33.000+0000" }, { "id": "274342", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "at the same time, please consider adding the ThumbTintColor property for a more complete IOS 7 Look and Feel\r\n\r\n{code}\r\n\r\n-(void) setThumbTintColor_:(id)color\r\n{\r\n \r\n \r\n if ([color isKindOfClass:[UIColor class]])\r\n {\r\n \r\n [[self switchView] setThumbTintColor:color ];\r\n \r\n }\r\n else\r\n {\r\n TiColor *ticolor = [TiUtils colorValue:color];\r\n [[self switchView] setThumbTintColor: [ticolor _color ] ];\r\n \r\n }\r\n \r\n}\r\n\r\n{code}", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-10-09T09:15:12.000+0000", "updated": "2013-10-09T09:16:26.000+0000" }, { "id": "274346", "author": { "name": "jameswise@gmail.com", "key": "jameswise@gmail.com", "displayName": "James Wise", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bump!", "updateAuthor": { "name": "jameswise@gmail.com", "key": "jameswise@gmail.com", "displayName": "James Wise", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-09T10:28:52.000+0000", "updated": "2013-10-09T10:28:52.000+0000" }, { "id": "277131", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi\r\n\r\nPlease add the tintColor as well, and when would we be able to see this released? We have a customer request for this at the moment.\r\n\r\nThanks", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-29T12:09:43.000+0000", "updated": "2013-10-29T12:09:43.000+0000" }, { "id": "277146", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi [~buder], this will likely make it into the next patch release after 3.2.0.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-29T15:26:00.000+0000", "updated": "2013-10-29T15:26:00.000+0000" }, { "id": "277207", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "ok, thanks, so the \"fix version\" is a latest note then? ;) Hope to see it in 3.2.1 then . .", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-29T18:47:22.000+0000", "updated": "2013-10-29T18:47:22.000+0000" }, { "id": "277213", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Hi Jörgen,\r\n\r\nYou can implement it manually, as I've mentioned in the current SDK (If you're in a hurry):\r\nGo to this file: /Users//Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone/Classes/TiUiSwitch.m\r\n\r\nThen add the code above, Clean your project, then you'll have access to it in Titanium like so:\r\n \r\nTi.UI.createSwitch({value:true, onTintColor:'#282828'});", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2013-10-29T19:09:07.000+0000", "updated": "2013-10-29T19:09:07.000+0000" }, { "id": "277246", "author": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "body": "already done, thanks. Was just trying to clarify expectations on my end.", "updateAuthor": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-29T20:50:42.000+0000", "updated": "2013-10-29T20:50:42.000+0000" }, { "id": "278843", "author": { "name": "chrisl", "key": "chrisl", "displayName": "Chris Lawn", "active": true, "timeZone": "America/Los_Angeles" }, "body": "definitely something that would be nice to have added in properly. Thanks for the tip on modifying the switch component as well, much appreciated! :)", "updateAuthor": { "name": "chrisl", "key": "chrisl", "displayName": "Chris Lawn", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-09T04:07:29.000+0000", "updated": "2013-11-09T04:07:29.000+0000" }, { "id": "283983", "author": { "name": "hardbyte", "key": "hardbyte", "displayName": "Craig Jones", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Love this! Thanks for the bodge while we wait for it to be implemented in the SDK.", "updateAuthor": { "name": "hardbyte", "key": "hardbyte", "displayName": "Craig Jones", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-12T15:48:22.000+0000", "updated": "2013-12-12T15:48:22.000+0000" }, { "id": "299048", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case\n{code}\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\n\nvar switch1 = Ti.UI.createSwitch({value:false, tintColor:'black', onTintColor:'blue', thumbTintColor:'red'});\n\nwin.add(switch1);\n\nwin.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-27T22:01:39.000+0000", "updated": "2014-03-27T22:01:39.000+0000" }, { "id": "299050", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5547", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-27T22:10:25.000+0000", "updated": "2014-03-27T22:10:25.000+0000" }, { "id": "302354", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue with environment:\r\n\r\nAppc-Studio:3.3.0.201404211130\r\nsdk:3.3.0.v20140423155715\r\nacs:1.0.14\r\nalloy:1.4.0-dev\r\nnpm:1.3.2\r\ntitanium:3.3.0-dev\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Iphone5(7.1)\r\n\r\n\r\nonTintColor property working fine on ios.\r\nhence closing the issue.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-24T06:56:35.000+0000", "updated": "2014-04-24T06:56:35.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }