Group views in Interface Builder

前端 未结 2 1867
孤街浪徒
孤街浪徒 2021-02-05 11:46

Is there any way to move a group of views within another without grouping all in the center?

Edit: Here some images with the process.

1.- I have

2条回答
  •  情歌与酒
    2021-02-05 12:07

    enter image description here

    You can make one view except xib's main view add that view contain all imageview,label in this view like below image. Assign IBoutlet to the the ViewInvoiceNumber and when set frame add subviews will move according that view like group.. But you have to enter all label,button,image view as subview of that view..

    Hope, this will help you...

提交回复
热议问题