Pregunta

How can I achieve the equivalent of this in storyboard?

[cell addConstraint:[NSLayoutConstraint constraintWithItem:nameLabel
                                                 attribute:NSLayoutAttributeRight
                                                 relatedBy:NSLayoutRelationEqual
                                                    toItem:cell.contentView
                                                 attribute:NSLayoutAttributeLeft
                                                multiplier:1.0
                                                  constant:200.0]];
¿Fue útil?

Solución

Very easily, in storyboard, control click on view and drag to the other view. Then click settings of the constraints on the right:

enter image description here

and click on Select and edit which will take you to constraints settings:

enter image description here

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top