小编Rah*_*ish的帖子

致命异常:UIViewControllerHierarchyInconsistency child viewcntrler <AVFullScreenPlaybackControlsViewController:应该有父视图控制器

我在我的实时应用程序中遇到崩溃.在这里发布Crashlytics的崩溃报告.你能指导我这个吗?

Fatal Exception: UIViewControllerHierarchyInconsistency child view controller:<AVFullScreenPlaybackControlsViewController:> should have parent view controller:<MyAVPlayerViewController:> but actual parent is:<AVFullScreenViewController:>

Fatal Exception: UIViewControllerHierarchyInconsistency



Fatal Exception: UIViewControllerHierarchyInconsistency
    0  CoreFoundation                 0x181616db0 __exceptionPreprocess
    1  libobjc.A.dylib                0x180c7bf80 objc_exception_throw
    2  CoreFoundation                 0x181616cf8 -[NSException initWithCoder:]
    3  UIKit                          0x1867f5010 -[UIView(Hierarchy) _associatedViewControllerForwardsAppearanceCallbacks:performHierarchyCheck:isRoot:]
    4  UIKit                          0x18677cdbc -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:]
    5  UIKit                          0x18677c13c -[UIView(Internal) _addSubview:positioned:relativeTo:]
    6  AVKit                          0x18cab3860 -[AVPlayerViewController _updatePlaybackControlsViewController]
    7  AVKit                          0x18cab20e4 -[AVPlayerViewController observeValueForKeyPath:ofObject:change:context:]
    8  Foundation                     0x181f37d84 -[NSKeyValueObservance observeValueForKeyPath:ofObject:change:context:]
    9  Foundation                     0x181f13f64 NSKeyValueNotifyObserver
    10 Foundation                     0x181f13a8c NSKeyValueDidChange
    11 Foundation                     0x181efe624 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:]
    12 AVKit …
Run Code Online (Sandbox Code Playgroud)

runtime-error objective-c ios avkit

7
推荐指数
0
解决办法
719
查看次数

标签 统计

avkit ×1

ios ×1

objective-c ×1

runtime-error ×1