{ "id": "98798", "key": "TIMOB-10395", "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": "2016-12-03T16:37:54.000+0000", "created": "2012-08-07T12:45:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "community", "core" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T19:05:55.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": "The performance of native UITableViewCellStyles is far superior of the custom rows/cells and the best choice for larger table views. As of now, this is still not implemented.\r\n\r\nI think this is due to the way Titanium deals with Rows, as it doesn't exposes the UITableViewCell to Ti high level API's thus not allowing the definition of a property mapped to UITableViewCell::initWithStyle.\r\n\r\nSo, as we can actually use the default cell style by using the title property on Ti.UI.TableViewRow, I think we could have something like:\r\n\r\n{code:javascript}\r\nrow = Ti.UI.createTableViewRow({\r\n style: Ti.UI.iOS.ROW_STYLE_SUBTITLE,\r\n title: \"This is the main title\",\r\n subtitle: \"This is the native subtitle\"\r\n});\r\n{code}\r\n\r\n\r\nWhere the *style* property could have values like:\r\n\r\nROW_STYLE_DEFAULT,\r\nROW_STYLE_VALUE1,\r\nROW_STYLE_VALUE2,\r\nROW_STYLE_SUBTITLE\r\n\r\nas per Apple Documentation on Native Cell Style support.\r\n\r\nfor Value1 and Value2, we could also use the subtitle parameter or have a label2 parameter where we could pass a label view.\r\n\r\nThere is a community request for that on: http://developer.appcelerator.com/question/45281/any-planned-support-for-iphone-native-table-cell-styles\r\n\r\nApple Reference on Native Cell Styles: http://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/c/tdef/UITableViewCellStyle\r\n", "attachment": [], "flagged": false, "summary": "iOS: Support for native UITableViewCell native Cell Styles on Ti.UI.TableViewRow", "creator": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "iOS\r\nTitanium SDK: 2.1.1.GA", "comment": { "comments": [ { "id": "233334", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is there any activity on this? It is a common feature to improve the performance of the TableViewRow's.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-05T04:52:08.000+0000", "updated": "2013-01-05T04:52:08.000+0000" }, { "id": "402523", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving, since we nowadays have the {{Ti.UI.ListView}} that supports all native cell-templates and also brings better performance to those. Thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-03T16:37:54.000+0000", "updated": "2016-12-03T16:37:54.000+0000" }, { "id": "415735", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T19:05:55.000+0000", "updated": "2017-03-24T19:05:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }