{ "id": "79244", "key": "TIMOB-5009", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-05-29T15:36:00.000+0000", "created": "2011-08-15T10:47:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:19.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": "h3. Bug\r\n \r\nh3. Problem\r\n\r\nOn iphone you can not change the text of the switch control.\r\n \r\nh3. Reproducible steps:\r\n \r\n1.Run the code below.\r\n \r\nh3. Expected behavior\r\n\r\nCustomer wants to change the text of the switch control on iphone\r\n\r\nh3. Sample Code:\r\n\r\n{code}\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'My window',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar basicSwitch = Titanium.UI.createSwitch({\r\n value:false,\r\n top:30,\r\n titleOff:'Hi',\r\n titleOn:'Hello'\r\n});\r\n\r\n\r\nwin1.add(basicSwitch);\r\n\r\n\r\n// open tab group\r\nwin1.open();\r\n\r\n\r\n{code}\r\n\r\nh3. Helpdesk\r\nAPP-667342 ", "attachment": [], "flagged": false, "summary": "Change the text of switch control on iphone", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Device and simulator", "comment": { "comments": [ { "id": "176356", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unfortunately, this is not possible.\r\n\r\nhttps://developer.apple.com/library/ios/#documentation/UIKit/Reference/UISwitch_Class/Reference/Reference.html\r\n\r\nThe underlying native UISwitch class offers no means to change the text. iOS actually changes localizes the text automatically, and in cases where 'on' and 'off' would be too long, use 1 and 0.\r\n\r\nProposing we change this to 'won't fix' or 'hold'. Updating this into a feature request since this is a request for added functionality.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-16T11:09:11.000+0000", "updated": "2011-12-16T11:09:11.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }