UINavigationItem setTint 错误?

UINavigationItem setTint Bug?

我认为这是 apple 改变色调的方式的错误:

这是我正在使用的代码:

self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(dismiss)];
self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];

及更高版本,点击按钮:

[UIView animateWithDuration:1 animations:^{
    self.navigationItem.leftBarButtonItem.tintColor = nil;
}];

不管我放什么颜色,效果都是一样的。

The undesired effect

您尝试过为不同的状态设置颜色吗?

[[theNavigationBar.subviews objectAtIndex:1] setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
[[theNavigationBar.subviews objectAtIndex:2] setTitleColor:[UIColor redColor] forState:UIControlStateNormal];