在我的应用程序的详细视图中,导航控制器的后退按钮似乎正在从一些不敬虔的表现中获取其颜色的线索。通过一条通往详细视图的路径,它是蓝色的;通过另一个,它是黑色的。在任何一种情况下,self.navigationController 对象中似乎都不存在后退按钮。
因此,这是一个详细视图:
这是此时导航控制器的快照:
我很确定我知道如何更改这个特定元素的颜色,但我不知道在哪里可以找到它。想法?
场地表视图控制器.m
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSDictionary *show;
if( [self.listType isEqualToString:@"showsByRegion"] )
{
NSString *venueIndex = [[self.allShows allKeys] objectAtIndex:[indexPath indexAtPosition:0]];
int index = [indexPath indexAtPosition:1];
show = [[self.allShows objectForKey:venueIndex] objectAtIndex:index];
} else {
int index = [indexPath indexAtPosition:(indexPath.length - 1)];
show = [self.showsAtVenue objectAtIndex:index];
}
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone"
bundle:[NSBundle mainBundle]];
detailViewController = [storyboard instantiateViewControllerWithIdentifier:@"InfoViewController"];
detailViewController.showInfo = show;
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:detailViewController animated:YES];
}
InfoViewController.m
- (void)viewDidLoad
{
[super viewDidLoad];
self.tableView = [[self.view subviews] objectAtIndex:1];
[self createInfoViewDictionary];
[self addTopImage];
[self setFrameForTableView];
[self bindLabelsToProperties];
[self.navigationController.navigationBar setTitleTextAttributes:[SHColors sharedInstance].navBarText];
}