Why can't I remove some controls from the storyboard - Xcode

I added the navigation bar manually, it doesn’t even have a navigation controller. It was initially difficult for me to add it, but now it is difficult for me to remove it. enter image description here

I tried all combinations delete, shift + delete, ctrl + delete and much more. Nothing works, I really don't want this. It actually creates 2 bars.

The last resort would be to remove the view manager and create a new one. But I'm curious why this is happening. I don't know, it's just me, but this new Xcode seems more buggy. He often falls.

+8
source share
3 answers

I found a problem, I previously made a built-in NavigationController which I did not notice, my bad. My storyboard is now a bit cluttered that the reason for this went unnoticed. I have to arrange it as soon as possible.

-3
source share

The way to remove the Navigation Item in this case is to right-click your controller, find the relationship socket and disconnect the corresponding navigation controller. After that, you can safely remove the Navigation Item .

+7
source share

@Alexi's answer, to remove the exit link, did not work for me, after removing the exit link, I deleted UINavigationViewController's Relationship Segue , in UIViewController , which had UINavigationItem , I could not delete.

Then I could remove the navigation item in my UIViewController.

Finally, I added Relationship Segue in Xcode 7 as follows:

  • In the Control storyboard, drag from UINavigationController to UIViewController
  • Select root view controller under Relationship Seque

enter image description here

0
source share

All Articles