Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone iOS UITableView索引是透明的_Iphone_Ios_Uitableview - Fatal编程技术网

Iphone iOS UITableView索引是透明的

Iphone iOS UITableView索引是透明的,iphone,ios,uitableview,Iphone,Ios,Uitableview,如下图所示,我已经设置了表格的背景和一些其他样式。以红色突出显示的索引是透明的。我如何将其设置为与牢房其他部分一样的白色 您可以使用指定的UITableView属性: tableView.sectionIndexColor = [UIColor brownColor]; tableView.sectionIndexBackgroundColor = [UIColor whiteColor]; tableView.sectionIndexTrackingBackgroundColor = [UIC

如下图所示,我已经设置了表格的背景和一些其他样式。以红色突出显示的索引是透明的。我如何将其设置为与牢房其他部分一样的白色


您可以使用指定的UITableView属性:

tableView.sectionIndexColor = [UIColor brownColor];
tableView.sectionIndexBackgroundColor = [UIColor whiteColor];
tableView.sectionIndexTrackingBackgroundColor = [UIColor blueColor];

如果Apple更改其UtableView实现,混淆视听底层TableView层可能会拒绝您的应用程序,并可能导致应用程序中断。

您可以使用指定的UtableView属性:

tableView.sectionIndexColor = [UIColor brownColor];
tableView.sectionIndexBackgroundColor = [UIColor whiteColor];
tableView.sectionIndexTrackingBackgroundColor = [UIColor blueColor];

如果Apple更改其UITableView实现,混淆视听底层TableView层可能会拒绝您的应用程序,并可能导致应用程序崩溃。

如果将附件视图设置为UITableViewCellAccessorOne,会发生什么情况。附件是否消失?右侧的索引字母仍然具有表格的背景,而不是纯白。如果将附件视图设置为UITableViewCellAccessorOne,会发生什么情况。附件消失了吗?右边的索引字母仍然有桌子的背景,而不是纯白。这样做很糟糕,可能会被苹果公司拒绝。如果苹果在新的iOS版本中更改TableView的内部实现,它将失败。这是一个糟糕的做法,可能会被苹果拒绝。如果苹果在新的iOS版本中更改TableView的内部实现,它将失败。