Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Bar Button Item looks different in xcode6
In the video tutorial, the instructor was able to drag and drop a bar button item into the mainStoryboard, but when I try to do this in xcode6, the bar button item doesn't show up.
How do you add a bar button item correctly into the application?
Joel Birlingmair3,130 Points
I see what you mean. The new bar buttons look nothing like they do in the video.
Here is why:
The new Human Interface Guidelines for IOS 8 dictate that Toolbars should be at the bottom of the screen. So when you place a bar button item onto your storyboard using Xcode 6, Xcode will automatically place the bar button onto a "bar" (UIToolbar) at the bottom of the interface.
If you would like the toolbar to be in another place on the screen (as in the video) try searching for an object called "UIToolbar" and placing that first near the top of the interface, then adding the "Bar Button" on top of that.
Things in the app world have changed a little bit since the release of this video. If you would like to read up on the Human Interface Guidelines for Toolbars for IOS 8, you can find that here.
Hope that helps. Good Luck!