Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10395] iOS: Support for native UITableViewCell native Cell Styles on Ti.UI.TableViewRow

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-12-03T16:37:54.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sn/a
ComponentsiOS
Labelscommunity, core
ReporterYgor Lemos
AssigneeEric Merriman
Created2012-08-07T12:45:08.000+0000
Updated2017-03-24T19:05:55.000+0000

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. I 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. So, 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:
row = Ti.UI.createTableViewRow({
    style: Ti.UI.iOS.ROW_STYLE_SUBTITLE,
    title: "This is the main title",
    subtitle: "This is the native subtitle"
});
Where the *style* property could have values like: ROW_STYLE_DEFAULT, ROW_STYLE_VALUE1, ROW_STYLE_VALUE2, ROW_STYLE_SUBTITLE as per Apple Documentation on Native Cell Style support. for Value1 and Value2, we could also use the subtitle parameter or have a label2 parameter where we could pass a label view. There is a community request for that on: http://developer.appcelerator.com/question/45281/any-planned-support-for-iphone-native-table-cell-styles Apple Reference on Native Cell Styles: http://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/c/tdef/UITableViewCellStyle

Comments

  1. Hans Knöchel 2013-01-05

    Is there any activity on this? It is a common feature to improve the performance of the TableViewRow's.
  2. Hans Knöchel 2016-12-03

    Resolving, since we nowadays have the Ti.UI.ListView that supports all native cell-templates and also brings better performance to those. Thx!
  3. Lee Morris 2017-03-24

    Closing ticket with reference to the previous comments.

JSON Source