Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why can't I remove some controls from storyboard - Xcode

Tags:

xcode4.2

I added a Navigation Bar manually, it doesn't even have a navigationController. Initially I had hard time adding it, but now I have hard time deleting it. enter image description here

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

Last resort would be to delete the viewcontroller and create a new one. But I'm curious on why it happens. I don't know if it's just me, but this new Xcode seems more buggy. It crashes frequently.

like image 604
GaneshT Avatar asked Jan 18 '12 05:01

GaneshT


People also ask

How do I remove a constraint from a storyboard?

To remove a single constraint just select it and hit delete. To remove constraints for a single view you select the view and hit the triangle button in the bottom right hand corner... And hit "Clear Constraints" under the "Selected Views" part.

How do I remove navigation controller from storyboard?

there is no source code, don't worry. If your changes are hot then just Control-Z if not select navigation controller and press delete button.

How do you remove objects from a storyboard?

You just select the label you want to delete, and hit the delete button on your keyboard. That will remove the object. It works for me. I use the delete back button!


1 Answers

The way to remove Navigation Item in this case is to right click your controller, find relationship outlet and unplug the associated navigation controller. After this is done, you can safely remove the Navigation Item.

like image 66
Aleks N. Avatar answered Oct 14 '22 09:10

Aleks N.