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

iOS Build a Playlist Browser with Swift Building the Master and Detail Views Connecting UI to Code

Max Lettenberger
Max Lettenberger
2,017 Points

No "bottom" option.

When I ctrl drag one of my image views onto another, there's no "bottom" option as there is in Pasan's.

New version of Xcode?

Is there a new way to do this?

Please let me know!

5 Answers

Fernando Tancini
Fernando Tancini
6,386 Points

Hello, I had the same problem. I don't really know why it worked, but try this out: 1 - select the view and ctrl drag. 2 - when the pop-up box appears, simply click on the view again so that the pop-up box disappear. 3 - ctrl drag it again and the pop-up box will have different options.

I hope it works also for you. Let me know if i doesn't please.

Max Lettenberger
Max Lettenberger
2,017 Points

Fernando, that worked!

Thank you.

Rafael Schwemmer
Rafael Schwemmer
6,108 Points

Same issue here, your solution worked, thanks!

Simpler way to remember is drag diagonally to bring up the extra options. That is actually what does it.

Max (and others who need this answered), I'm currently on xcode 6.4, and similar to what Fernando says it's a silly fix.

Instead of "Control dragging" straight up to the UIImageView to open the dialogue box, move your mouse horizontally as well, creating a diagonal line while control dragging.

For some reason vertical lines don't cause the "bottom" option, but slightly horizontal lines do.

Good luck!

This one worked for me. The first solution didn't work out for me

Nick Jones
Nick Jones
2,086 Points

Hi Max

I'm not entirely sure of the "bottom" you're after unfortunately. Am I right in assuming that you're setting up your constraints? From what you've posted it sounds as if what you are looking for is actually "Vertical Spacing" which should be the first option available on the pop-up box when CTRL-Click and dragging from one image view to another. If this isn't the case of course just let me know.

Max Lettenberger
Max Lettenberger
2,017 Points

Hey Nick,

I was actually trying to align (not sure if that's the right word) a label with the bottom of an image view. I'm working on something else now, but I'll let you know when I get back to that. Thanks.

Hello All, The Solution that worked:

  1. Click on the view that you added.
  2. Go to attribute inspector in the right pane.
  3. Uncheck the autoresize option.
  4. Now drag the view to UIImage & you should see the "bottom" option.

After this the auto-resize seems to be checked again, maybe because we choose to stick to bottom.

But this did work for me.

You can also drag with ctrl AND option pressed, which gives you additional options. Bottom is amongst these extra options.