{ "id": "122170", "key": "TIMOB-15680", "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": [ { "id": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-08T19:07:53.000+0000", "created": "2013-11-06T23:09:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-11T18:42:26.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": "When specifying an attribute string using the Ti.UI.iOS.ATTRIBUTE_TEXT_EFFECT type, currently we cannot use the only supported effect which is the letterpress effect that is specified with the NSTextEffectLetterpressStyle constant. This constant does not appear to be exposed in the TiSDK.\r\n\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h\r\n\r\nhttps://developer.apple.com/library/ios/documentation/uikit/reference/NSAttributedString_UIKit_Additions/Reference/Reference.html#//apple_ref/c/data/NSTextEffectLetterpressStyle\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Need to expose the NSTextEffectLetterpressStyle constant for AttributedString", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "278531", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4923", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-06T23:44:33.000+0000", "updated": "2013-11-06T23:44:33.000+0000" }, { "id": "278534", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Code to test:\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor: '#ddd',\n});\n \nwin.open();\n \nvar text = 'Bacon ipsum dolor sit amet fatback leberkas salami sausage tongue strip steak. Andouille drumstick meatball boudin shank flank sausage, ribeye ham venison doner bacon ham hock. Appcelerator Titanium sucks rocks! Filet mignon ham pancetta, tail salami pork chop short ribs leberkas kielbasa t-bone tri-tip bresaola. Kevin beef ribs tail hamburger andouille filet mignon bresaola ham ham hock flank meatball pork chop corned beef';\n \nvar attr = Ti.UI.iOS.createAttributedString({\n text: text,\n attributes: [\n {\n \ttype: Ti.UI.iOS.ATTRIBUTE_TEXT_EFFECT,\n \tvalue: Ti.UI.iOS.ATTRIBUTE_LETTERPRESS_STYLE,\n\t\trange: [0, text.length]\n }\n ]\n});\n \nvar label = Ti.UI.createLabel({\n left: 20,\n right: 20,\n height: Ti.UI.SIZE,\n backgroundColor: 'red',\n color: '#ccc',\n attributedString: attr\n});\n \nwin.add(label);\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-06T23:46:55.000+0000", "updated": "2013-11-06T23:46:55.000+0000" }, { "id": "278968", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as bug as fixed. Verified ATTRIBUTE_LETTERPRESS_STYLE using the above test code.\n\nTested on:\n\nTitanium Studio, build: 3.2.0.201311100540\nSDK build: 3.2.0.v20131110134044\nXcode: 5.0.1\nDevice: iphone 5s (7.0.2)\n\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-11T18:42:00.000+0000", "updated": "2013-11-11T18:42:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }