How can I set different background images for the navigation bar in a detail split view for when it is in landscape as opposed to portrait?
Here is the code I use
[self.topNavbar setBackgroundImage:[UIImage imageNamed:@"nav-bar-portrait-ipad"]
forBarMetrics:UIBarMetricsDefault];
[self.topNavbar setBackgroundImage:[UIImage imageNamed:@"nav-bar-landscape-ipad"]
forBarMetrics:UIBarMetricsLandscapePhone];
UIBarMetricsLandscapePhone is never called when a splitView is rotated to landscape. The width of the detailView in portrait (768 px) mode is different to landscape mode (704 px), so how are we meant to set a different image for each?