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)
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:
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:
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.
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 .
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".
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With