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.
我正在尝试让 UISplitViewController 与 iPad 应用程序一起使用。
我在主窗格下链接了表格视图控制器,在详细视图下链接了一个普通的 UIView。
我的代码中也有[window addSubview:splitView.view];。
[window addSubview:splitView.view];
出于某种原因,即使表格视图控制器代码在我的笔尖下正确编码和链接,我也只是得到一个白屏。
任何帮助都会很棒!谢谢!
您可以在此处找到代码:http ://drop.io/s28bu4t/asset/mydevice-hd-zip
看起来拆分视图的右侧视图控制器没有设置。 左右两边都需要设置。 尝试为右侧创建一个视图控制器并将类标识从 UIViewController 更改为您的自定义视图控制器。