故事板上的详细视图也放大了-在模拟器中创建未对齐的对象 [英] Detail View on Storyboard too zoomed in - creates misaligned objects in simulator

查看:78
本文介绍了故事板上的详细视图也放大了-在模拟器中创建未对齐的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可能是一个初学者的问题,但是在stackoverflow和其他论坛上进行了无休止的搜索之后,没有找到解决此特定问题的任何解决方案。

I have perhaps a beginner's question but have not found any solutions addressing this specific problem after searching endlessly on stackoverflow and other forums.

出现在故事​​板上的详细视图此时,放大和缩小只是在情节提要板上放大和缩小,而没有具体的细节视图。

My detail view in the storyboard appears to be too zoomed in. At this point, zooming in and out simply zooms in and out on the storyboard, but not the detail view specifically.

这个指标是我的按钮左侧的对齐箭头未位于详细信息视图框的半纬度处,尽管当我将按钮与该标记对齐时,我确实看到了一个十字准线,表明我的按钮处于居中状态。

Indicators of this are that the alignment arrow to the left of my button is not positioned at half-latitude of the Detail View box, although when I align my button to this marker I do see a crosshair indicating that my button is "centered".

详细信息视图-更远的地方

在仿真中,很明显,使用这些十字准线会产生运行时对齐,并且对齐的高度远不居中。我的按钮当前所在的位置似乎在模拟器屏幕的中央,但希望我的指导原则允许使用建议的指导原则将按钮居中。

Upon simulation, it is apparent that using these crosshairs produces a run-time alignment far right and up from being centered. Where my button is currently placed seems to be in the center of the simulator screen but would like my guidelines to allow the button to be centered using the guidelines suggested.

模拟器视图

A)如何操作我在详细信息视图中缩小了,以便可以在详细信息视图中看到整个屏幕?

A) How do I "zoom out" within the Detail View so I can see the entire screen in the detail view?

B)如果准则固有地处于关闭状态,如何居中对象-center?

B) How can I center my object if the guidelines are inherently off-center?

非常感谢您的建议和投入。

Thank you so much for you advice and input.

推荐答案

我忘了提到如何解决放大问题。

I forgot to mention how I fixed the "too zoomed-in" problem.

在故事板控制器中,在文件检查器左侧的导航器面板中,我只是在Interface Builder文档部分中取消选中使用大小类。我的视图控制器变成了普通的iPhone形状,一切都终于安装到位。

In the storyboard controller, on the left navigator panel, within the file inspector, I simply unchecked "Use Size Classes" within the Interface Builder Document section. My view controller changed into a normal iPhone shape and everything finally fit into place.

这篇关于故事板上的详细视图也放大了-在模拟器中创建未对齐的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆