How to align the view in the upper left part of the window?

When I put the button in the upper left of the window, it aligns exactly as I would expect:

http://stuf.ro/Button.png

It also does not resize with the window, which is good. However, if I try to do the same with a custom view, it automatically adds constraints to the bottom and right sides, which makes the resize along with the window:

http://stuf.ro/View.png

How can I get rid of them? I would like the view to never resize, and I would like it to be attached to the top left of the window like a button.

If I try to select a constraint and press the Backspace key, nothing will happen. The "Delete" option in the editing menu is also disabled.

+5
source share
2 answers

Your idea resizes because it has limitations that speak above it above it, to its left, and to its right should be fixed. These are the lines that you can see around your view in the screenshot. The only way to satisfy these restrictions, like resizing a window, is to resize the view.

. , , , , . () , , : ( ) , , . ( - , .)

, , , IB , . IB , . "" > "" > "", . ( ) - .

, . , .

Apple.

+9

. " " " ". D

0

All Articles