dtm*_*and 5 iphone uitableview ios7
在 iOS7 SDK 中加载我的应用程序。我的表视图的索引列表现在已压缩:
我似乎无法追踪可能发生的事情。我没有在任何地方设置尺寸或长度。下面是我分配标题的代码,但我猜问题一定出在其他地方?
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView
{
NSMutableArray *titleArray = [[NSMutableArray alloc] init];
if (BookHasSections())
{
NSInteger sections = tableView.numberOfSections;
for (int section = 0; section < sections; section++)
{
switch (section)
{
case 0:
[titleArray addObject:@"1"];
break;
default:
[titleArray addObject:[NSString stringWithFormat:@"%d0",section]];
break;
}
}
}
return titleArray;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1695 次 |
| 最近记录: |