0

I've two views (Text/Image) where one covers the total width of the screen, the other one is an image which sits in lower right corner of the text view. Up to now I was not able write layout constraints to have both view right and bottom aligned to each other. Here is what I tried to accomplish it but the statusA1 is incorrect.

NSArray *horizontalA = [NSLayoutConstraint constraintsWithVisualFormat:@"H:|[answerA]|" options:0 metrics:nil views:viewsDict];

NSArray *statusA1 = [NSLayoutConstraint constraintsWithVisualFormat:@"[answerA][statusA]" options:NSLayoutFormatAlignAllBottom | NSLayoutFormatAlignAllRight metrics:0 views:viewsDict];

1 Answer 1

3

Set the vertical spacing between two and remove the bottom contraints on both the subviews.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.