An application similar to Contacts, where we display a view with multiple contacts.
On iOS7, the letters in the 'quick access bar' on the right side are too tightly placed for the user to interact with and drag with ease. (To preview the issue please refer to attachment A.png)
Since the default Apple standard is something similar to what is attached in B.png, where as you would notice, all the 26 alphabets from A to Z plus the symbol '#' is provided even if there is just one or two or three sections in the table.
Main issue is that the letters that appear are too tightly coupled and would like to have a fix for the same.
var win = Ti.UI.createWindow({
backgroundColor : '#ffffff',
title : "Testing",
layout : 'vertical',
});
var _data = [];
var _index = [];
var tableViewData = ['a', 'b', 'c', 'd', 'e', 'f', 'm', 'y', 'x', 'z'];
var lastLetter = tableViewData[0].substr(0, 1);
for (var i = 0, len = tableViewData.length; i < len; i++) {
var row = Ti.UI.createTableViewRow({
height : 50,
header : tableViewData[i],
rowIndex : i,
});
var labelDetails = Ti.UI.createLabel({
color : '#222',
text : tableViewData[i],
left : 70,
top : 4,
width : 360
});
row.add(labelDetails);
_data.push(row);
_index.push({
title : tableViewData[i],
index : i
});
}
var table = Ti.UI.createTableView({
filterAttribute : 'mainText',
selectedIndex : -1,
index : _index,
});
table.setData(_data);
win.add(table);
win.open();
Attached screenshot of test with SDK 3.1.3
Apple only allows us to specify the index titles and the sections they correspond to. How they are rendered on the screen is completely up to the OS and that has changed in IOS7. That being said if you really want more spacing in your indexTitles, there is nothing stopping you from adding an empty title. Something like this
Closing ticket as invalid.