Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Self-Destructing Message iPhone App Using Parse.com as a Backend and Adding Users Logging In and Logging Out

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?

1 Answer

Joel Birlingmair
Joel Birlingmair
3,130 Points

Hello Christina!

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!