151202storyboard中, 设置子控件和父控件的高宽比

来源:互联网 发布:机械工艺制作软件 编辑:程序博客网 时间:2024/06/05 02:29

选择子控件label,点control 连接到父控件view



松手后弹出对话框



选择高宽比,equal widths 或equal heights

然后点击Size inspector->Constraints找到对应的项目,点击Edit,调整multiplier


0 0