Hi all,
I know I'm sounding noobish now.. But.. How does these constraints work ?
Lets say I have an 'header' view.
I want this header view stay the same height as it is. So I add the constraint to "Pin" the height.
Now I want to to be as width as the self.view.. So I rightlcick my 'header' to 'view' and say equal width.
Doing the same for leading space, and top space.
So now I have set constraints for top, left, width and height.
Left and Top of 'header' is 0.
I have a preview of 4.5" 5" and iPad, on the iPad I see that there is space between the left and my header, 20 ? or little less, but more than default -16
Can anyone help me out, if someone understands what I'm talking about ?
I know I'm sounding noobish now.. But.. How does these constraints work ?
Lets say I have an 'header' view.
I want this header view stay the same height as it is. So I add the constraint to "Pin" the height.
Now I want to to be as width as the self.view.. So I rightlcick my 'header' to 'view' and say equal width.
Doing the same for leading space, and top space.
So now I have set constraints for top, left, width and height.
Left and Top of 'header' is 0.
I have a preview of 4.5" 5" and iPad, on the iPad I see that there is space between the left and my header, 20 ? or little less, but more than default -16
Can anyone help me out, if someone understands what I'm talking about ?