Unable to set the segue identifier in XCode 4.6 because Attributes Inspector is blank

StackOverflow https://stackoverflow.com/questions/18515650

  •  26-06-2022
  •  | 
  •  

Pergunta

I have an iPad app (XCode 4.6, iOS 6.2, ARC and Storyboards). Everything is connected properly using segues; however, when I click on a segue, I am presented with a blank Attributes inspector. Why and how do I fix it?

Here is the structure of the app:

enter image description here

And here is what I see when I click on any segue:

enter image description here

Foi útil?

Solução

You can't set an identifier of a segue that's created between a UINavigationController or a UITabBarController. This is expected behaviour.

Segues between other view controllers should work OK though. Try selecting a different file and then return to the storyboard or try restarting Xcode (fixes a lot of annoying problems for me).

Edit based on comment:

If I understand your UI layout (the screenshot is a bit difficult to make out fully) and problem correctly...

You'd have to create a good old fashioned IBAction method, hook up each UIButton and call setSelectedIndex: on the UITabBarController.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top