Evenly space multiple views within a container view

后端 未结 29 2492
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 06:14

Auto Layout is making my life difficult. In theory, it was going to be really useful when I switched, but I seem to fight it all of the time.

I\'ve made a demo proje

29条回答
  •  名媛妹妹
    2020-11-22 06:44

    With labels this works fine at least:

    @"H:|-15-[first(==second)]-[second(==third)]-[third(==first)]-15-|

    If the first has the same width as the second, and second the third, and third the first, then they will all get the same width... You can do it both horizontally (H) and vertically (V).

提交回复
热议问题