简体   繁体   English

无法在Storyboard中更改视图的大小

[英]Can't change size of view in Storyboard

I am using Xcode 7.3, I can change the size of any kind of view from the property and I can drag the views around. 我正在使用Xcode 7.3,我可以从属性中更改任何类型的视图的大小,我可以拖动视图。 Unfortunately, view seems to be locked while trying to edit the size of view using mouse. 不幸的是,在尝试使用鼠标编辑视图大小时,视图似乎被锁定。 As you can see in the image, when I click ImageView its not giving option to resize the view. 正如您在图像中看到的那样,当我单击ImageView时,它没有给出调整视图大小的选项。

锁定ImageView

您可以转到编辑器>画布>显示调整大小旋钮进行更改。

谢谢大家,选择编辑器>画布>显示调整大小旋钮。

Select your viewcontroller and then click Show document outline in the left bottom corner. 选择viewcontroller,然后单击左下角的Show document outline。 It will show all the views in that view controller. 它将显示该视图控制器中的所有视图。 Then single click the item ie, Imageview in this case. 然后单击该项,即本例中的Imageview。 Then the 6squares will appear. 然后会出现6squares。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM