center-vfl icon indicating copy to clipboard operation
center-vfl copied to clipboard

It works only with single view

Open dzpt opened this issue 8 years ago • 3 comments

If i want to align center with the group of some views?

dzpt avatar Apr 10 '16 23:04 dzpt

Hi @Tom29, can you explain a little more. Or better yet draw a picture of what you want to achieve? Thank you.

evgenyneu avatar Apr 10 '16 23:04 evgenyneu

Hi @evgenyneu . I have a list of views , now i want to display it in the center of superview horizontal. H:|-[c(26)]-10-[i(26)]-10-[t(26)]-10-[s(26)]-10-[p(26)] I've tried your way and it works but only with one single view.

Is there any possible way to do it? Many tks.

dzpt avatar Apr 11 '16 07:04 dzpt

So if I understood you correctly you need to center multiple views inside a container view like this. What I would do is group those smaller subviews in a single view which can be then centered in a superview.

superview_and_subviews

evgenyneu avatar Apr 11 '16 07:04 evgenyneu