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.
任何人都知道是否可以在情节提要中创建可用于主视图的视图?
我尝试使用标识符实例化我的视图控制器,然后从视图控制器添加视图,但框架与我在情节提要中使用的框架不同。
我知道可以在故事板中使用容器视图。但我不能在 iOS 5.0 中使用它。
不要在情节提要中创建视图控制器。创建一个单独的 xib 文件,然后使用 xib 实例化控制器并将视图作为子视图添加到主视图中。