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

Thomas Nilsen
Thomas Nilsen
14,957 Points

add text field in view controller in mainstoryboard - xcode 5.0.2

When I try do that, the text field doesn't stick. Any advice on how to get passed this?

2 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

First things first (this might sound silly), have you restarted Xcode? Sometimes things get corrupted and only a restart fixes it.

If that doesn't fix it, can you link to in a screenshot of your storyboard? You can upload it to a site like imgur.com and then link it with Markdown syntax. There's a link to a Markdown Cheatsheet below, but for an image you do the following:

![alt text whatever you want](<link to image>)

Or even just paste the link to the image in here. :)

Thomas Nilsen
Thomas Nilsen
14,957 Points

Hi!

1) Yes, I have tried a restart. Several times in fact.

2) I uploaded a video that hopefully will show everything clearly: http://videobam.com/bUuPs

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Thanks for the video - that was perfect! This is a bug/feature of Xcode.

From your video, I could see that you were zoomed out on the storyboard because the zoom in icon (bottom right) was active. Click on that until it becomes disabled, meaning you are zoomed in at 100%, and then you should be able to edit it. :-/

Thomas Nilsen
Thomas Nilsen
14,957 Points

Brilliant! Thank you very much! :)

Stone Preston
Stone Preston
42,016 Points

can you add any other objects to your view? is it just the text field that cant be added?

Thomas Nilsen
Thomas Nilsen
14,957 Points

No labels, no buttons, no nothing...