Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to get navigation bar to appear in xcode, double click doesn't register

I was working through the swift tutorial:

https://www.raywenderlich.com/115279/swift-2-tutorial-part-2-a-simple-ios-app

On the section (about 1/3 way down)

enter image description here

But I'm noticing a problem when I attempt these steps in my xcode environment. I am able to successfully embed a navigation bar, but "double clicking" doesn't allow me to set the text at all, in fact it really doesn't let me do anything just highlighting the nav bar region:

See:

enter image description here

I can also put up code at request, but being this is so early in the project, I haven't coded really anything yet, it seems more like a UX challenge. Am I missing some particular setting in Xcode editor that allows the text to be highlighted, or has the guide skipped some trivial, but necessary step to making this work?

@sschale's answer is a good solution:

For user's that come across the post, it isn't obvious where that menu is. After some digging I found that you need to hit a certain middle icon (in the red box) so it is blue to find the form. Image attached:

enter image description here

like image 950
Sidharth Ghoshal Avatar asked Jun 01 '16 05:06

Sidharth Ghoshal


People also ask

How do I show the Run button in Xcode?

Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

How do I add a navigation bar button in Swift?

You need to open the storyboard, delete the view controller that you have, press cmd , shift , l , and then search for navigation controller . Drag that onto the storyboard. You now need to click on the navigation controller and set it to be the is initial view controller under the attributes inspector .

How do I add a navigation bar to my storyboard in Swift?

Go to the Storyboard. Select the View Controller and in The Editor menu select Embed in -> Navigation Controller. Next, drag a Bar Button from the Object Library to the left side of the Navigation Bar and name it "Left Item". Repeat this for the right side and name it "Right Item".


1 Answers

Sometimes it can be hard for it to register there. You can edit it in the right sidebar directly, when the Navigation Item is selected:

enter image description here

like image 74
sschale Avatar answered Nov 15 '22 07:11

sschale