1

iOS 披露指示器在 ios7 中更改了外观;它现在是褪色的灰色。不幸的是,我的应用程序有很多页面(超过 100 个)具有不同的部分和背景颜色。在 ios6 上没有问题,但在 ios7 上,新的披露指示器在某些部分的背景上不可见。

我需要一个解决方案,因为我没有时间更改超过 100 个页面背景,即使我这样做了,如果颜色披露指示器在 ios7 中看起来还不错,在 ios6 中就不行,反之亦然。

4

2 回答 2

0

Will it be possible for you to create custom images for ios7, and set the accessoryView of the problem cells in a method such as the data source 'cellForRowAtIndexPath' like below?

if(UIDevice.currentDevice.systemVersion.floatValue >= 7)
{

    UIImageView* customDisclosureImageView = [[UIImageView alloc] initWithImage:normalImage];
    customDisclosureImageView.highlightedImage = selectedImage;
    cell.accessoryView = customDisclosureImageView;
}
于 2013-12-06T20:56:04.003 回答
0

设置tintColor表视图的。这将为单元格上的披露指示器着色。

请注意,该tintColor属性仅在 iOS 7 下可用,因此请正确编码:

if ([self.tableView respondsToSelector:@selector(setTintColor:)]) {
    self.tableView.tintColor = ... // the desired color
}
于 2013-12-06T20:10:31.320 回答