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! While you're at it, check out some resources Treehouse students have shared here.

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

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...