ok check out the image and constraints here...
you need to give width and height constraints too....also need to give x and y position of button. so that screen knows the alignment from where to start drawing the button with how much width and height