ios - Autolayout with overlapping views -
i've 2 views (text/image) 1 covers total width of screen, other 1 image sits in lower right corner of text view. not able write layout constraints have both view right , bottom aligned each other. here tried accomplish statusa1 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];
set vertical spacing between 2 , remove bottom contraints on both subviews.
Comments
Post a Comment