1

Storyboard:

enter image description here

Simulator before segue with view (which is connected to a tab bar controller) showing correct background:

enter image description here

A tap on any of the icons causes a push segue but the background is white, when it should be blue: enter image description here

I'm using AQGridview and the code for the segue is:

-(void)gridView:(AQGridView *)gridView didSelectItemAtIndex:(NSUInteger)index
{
    [self performSegueWithIdentifier:@"mySegue" sender:self];
}

Can anyone tell me what I'm missing?

Robert
  • 5,278
  • 43
  • 65
  • 115

2 Answers2

1

Did you set the seque Identifier?

Did you set the seque Identifier?

Monte Hurd
  • 4,349
  • 5
  • 30
  • 35
  • Thanks, yes. It's named `mySegue`. If I change it or delete it, the program crashes with an "unknown identifier" error. – Robert Feb 14 '13 at 19:47
0

Turns out it was something rather stupid but I'll explain it because it's the type of thing I can imagine happening to anyone else who is as daft as me. (There has to be someone as daft as me...)

I'd earlier added a webView to to the viewDidLoad method of the destination ViewController. The default colour of the webView is white and it was overlaid on top of the background colour, so I couldn't see it.

Removed the code referring to the webView and all was well again.

Yes, I'm feeling rather foolish now.

Robert
  • 5,278
  • 43
  • 65
  • 115