Fadi Obaji
Fadi Obaji

Reputation: 1494

XCode: Storyboard adds extra spaces between elements?

I have this ViewController in my app's Storyboard:

enter image description here

There's an category image and then under it there's the category title.

When i test the app, the storyboard adds extra spaces at the top and bottom of the category title like this:

enter image description here

How can i remove the extra space!?

EDIT

This is the structure: enter image description here

Upvotes: 1

Views: 362

Answers (2)

Ookey
Ookey

Reputation: 652

Select your image then hold control+RMB and lead mouse to label. Release mouse button and choose "Vertical spacing" in menu that apperas.

Upvotes: 0

Abhishek729
Abhishek729

Reputation: 327

I think this has been because of the constraints used and the difference in screen size. The height of the view (containing the fruits image and fruit) has increased. Hope this helps :-)

Upvotes: 1

Related Questions