Warning once only: UITableView w

2021-07-27  本文已影响0人  iOS_我更专业

[TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x7fbdb7838a00; frame = (0 58; 414 263.5); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x6000022ed5f0>; layer = <CALayer: 0x600002c14760>; contentOffset: {0, 0}; contentSize: {414, 132}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <QLLive.LVLiveBannedAlertView: 0x7fbdb710f690; frame = (0 0; 414 355.264); layer = <CALayer: 0x600002c4cdc0>>>

哪位大神可以解答一下,我延迟加载解决了

上一篇下一篇

猜你喜欢

热点阅读