[TIMOB-27171] iOS 13: Support new UITableViewStyleInsetGrouped style in list-view
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2019-08-30T15:01:44.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 8.2.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Hans Knöchel |
| Assignee | Vijay Singh |
| Created | 2019-06-19T18:11:27.000+0000 |
| Updated | 2020-11-20T04:16:58.000+0000 |
Description
The new
UITableViewStyleInsetGrouped should be supported in the list-view and table-view.
PR - https://github.com/appcelerator/titanium_mobile/pull/10994 Test Case (TableView)-
Test Case (List View) -var win = Ti.UI.createWindow(); var navWindow = Ti.UI.createNavigationWindow({ window: win }); var sectionFruit = Ti.UI.createTableViewSection({ headerTitle: 'Fruit' }); sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Apples' })); sectionFruit.add(Ti.UI.createTableViewRow({ title: 'Bananas' })); var sectionVeg = Ti.UI.createTableViewSection({ headerTitle: 'Vegetables' }); sectionVeg.add(Ti.UI.createTableViewRow({ title: 'Carrots' })); sectionVeg.add(Ti.UI.createTableViewRow({ title: 'Potatoes' })); var table = Ti.UI.createTableView({ data: [sectionFruit, sectionVeg], style: Ti.UI.iOS.TableViewStyle.INSET_GROUPED }); win.add(table); navWindow.open();var win = Ti.UI.createWindow({ backgroundColor: '#fff' }); var list = Ti.UI.createListView({ top: 50, style: Ti.UI.iOS.TableViewStyle.INSET_GROUPED, sections: [Ti.UI.createListSection({ headerTitle: 'List 1', items: [{ properties: { title: "Item 1", } },{ properties: { title: "Item 2", } },{ properties: { title: "Item 3", } } ] }), Ti.UI.createListSection({ headerTitle: 'List 2', items: [{ properties: { title: "Item 4", } },{ properties: { title: "Item 5", } },{ properties: { title: "Item 6", } } ] })] }) win.add(list); win.open();FR passed. waiting on Jenkins
[~vijaysingh] Please could you add a PR for 8_3_X.
merged to master
*Closing ticket*, improvement verified in SDK version
8.2.0.v20190829124255. Note* Improvement will be merged into 8_3_X at a later date. Test and other information can be found at: PR - https://github.com/appcelerator/titanium_mobile/pull/10994