界面生成器中的 iPhone 视图太大

发布于 2024-12-31 23:55:43 字数 237 浏览 2 评论 0原文

我的问题是我创建的每个视图都太大。

以下是一些示例: IB 中的标签栏 IB 中的标签栏: iPhone 上的标签栏 [iPhone 上的标签栏: 这个问题出现在我的每一个观点中。 有人知道我该如何解决这个问题吗?

此致 梅兰妮

My problem is that every view, that I am creating is too large.

here are some examples:
Tab bar in IB
Tab bar in IB:
Tab Bar on iPhone
[Tab Bar on iPhone:
This problem occurs in every of my views.
Does anybody know how I can solve that?

Best regards
Melanie

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

濫情▎り 2025-01-07 23:55:43

从屏幕截图来看,您似乎尝试将 UITabBarController 放入 UINavigationController 中。根据文档,你不应该这样做。这可能是奇怪尺寸的原因。

http://developer.apple.com/库/ios/#documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html

From the screenshot, it looks like you've tried to put a UITabBarController inside a UINavigationController. According to the docs, you shouldn't do this. It may account for the strange sizing.

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html

寄人书 2025-01-07 23:55:43

您确定您的 XIB 是 iPhone xib 而不是 iPad

,或者

请考虑如下设置您的视图框架。

yourview.frame = CGRectMake(0,0,320,480);

are you sure your XIB is iPhone xib rather then iPad

or

second think set your viewframe like below.

yourview.frame = CGRectMake(0,0,320,480);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文