iPhone Dev:多个 XIB 来支持多语言等方向?

发布于 2024-09-27 20:30:42 字数 109 浏览 0 评论 0原文

我刚刚发现了多个用于语言 ui 支持的 xib,我非常兴奋,因为它比我预期的要简单。 现在我想知道是否可以应用相同的方法来拥有不同方向的多个 xib,只需在包含同名 xib 的项目中创建不同的文件夹即可。

I've just discovered multiple xib for languages ui support, I'm very excited because is simpler than I expected.
Now I was wondering if it's possible to apply same method to have multiple xib for different orientation simply creating different folders in project containing a xib with the same name.

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

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

发布评论

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

评论(1

趴在窗边数星星i 2024-10-04 20:30:42

事情没那么简单。您可以这样做,以便为 iPad 和 iPhone 提供多个 NIB,但对于方向,您必须在初始化时手动重新加载 NIB(除非您始终以恒定方向加载),和< /em> 在 RotationToInterfaceOrientation 事件期间。

It's not that simple. You can do that to have multiple NIBs for iPad and iPhone, but for orientations, you have to manually reload the NIB both at initialization (unless you always load at a constant orientation), and during a RotationToInterfaceOrientation event.

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