How to create storyboard layout multiple views within header view iOS?

前端 未结 2 1947
無奈伤痛
無奈伤痛 2021-01-25 07:42

I have created header UIView on storyboard view controller, now I need to create 4 views like below colored image Into that UIview base vi

相关标签:
2条回答
  • 2021-01-25 08:37

    First set constraints to header view. Select header view and apply following constraints:

    • Leading, top, trailing space and Height = 80 (for example)

    Once you apply constraints to header view then select all buttons at once :

    Hope this can help

    0 讨论(0)
  • 2021-01-25 08:46

    Try this..

    Now IOS 9 realse new feature stackview .

    U can drag the stackview into your header view and add uiviews into it.

    You can also change stackview's properties based on your project..

    0 讨论(0)
提交回复
热议问题