【问题标题】:Debug View Hierarchy not showing for UIImagePickerControllerUIImagePickerController 未显示调试视图层次结构
【发布时间】:2018-05-18 13:42:03
【问题描述】:

我创建并展示了一个 UIImagePickerController 并想看看它的构成。相反,我得到了这个:

为什么调试视图层次结构没有显示 UIImagePickerController 及其所有视图,而是只显示一个黑色视图?从技术上讲,我可以为我自己的视图和视图控制器做同样的事情吗?

【问题讨论】:

    标签: ios xcode cocoa uiimagepickercontroller


    【解决方案1】:

    答案是 RemoteView[1]。 iOS 有另一个项目来显示 ViewController 并将其流式传输到您的应用程序。远程进程使用 CALayerHost[2] 进入当前应用程序的上下文。 PoC 示例(虽然不使用 XPC)[3]

    [1]https://oleb.net/blog/2012/10/remote-view-controllers-in-ios-6/.
    [2]http://iphonedevwiki.net/index.php/CALayerHost.
    [3]https://github.com/freerunnering/libremoteview

    【讨论】:

      猜你喜欢
      • 2014-03-03
      • 1970-01-01
      • 2023-02-16
      • 2015-09-23
      • 2018-09-14
      • 2017-07-11
      • 1970-01-01
      • 2018-03-02
      • 2015-06-10
      相关资源
      最近更新 更多