samedi 25 avril 2015

How to occupy the app bottom with an image?


In Xcode 6 app I have placed 2 buttons at the top and 1 image (in Aspect Fill mode) at the bottom (here fullscreen):

screenshot 1

All 3 elements are center-aligned.

For the buttons I have added 20 px constraints to the sides and top and they seem to be placed well now.

However I can not figure out, which constraints to use - to nail the image at the bottom and make it occupy the most space there.

I have tried the following:

  • Center-aligned the image
  • 20 px constraints to left, bottom and right
  • More or equal to 20 px constraing to the above button

I don't understand the warnings displayed by the Interface Builder, please tell me what is missing there (here fullscreen):

screenshot


Aucun commentaire:

Enregistrer un commentaire