Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚发现了多个用于语言 ui 支持的 xib,我很兴奋,因为它比我预期的要简单。现在我想知道是否可以应用相同的方法让多个 xib 用于不同的方向,只需在包含同名 xib 的项目中创建不同的文件夹。
没那么简单。您可以为 iPad 和 iPhone 设置多个 NIB,但对于方向,您必须在初始化时(除非您始终以恒定方向加载)和RotationToInterfaceOrientation 事件期间手动重新加载 NIB。