Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why returned UITableViewAlertForLayoutOutsideViewHierarchy? Child controllers has table view with huge cell. #735

Open
4ika opened this issue Dec 21, 2024 · 0 comments

Comments

@4ika
Copy link

4ika commented Dec 21, 2024

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: 0x102a1f000; frame = (0 0; 393 714.333); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x30234d0b0>; backgroundColor = <UIDynamicCatalogColor: 0x300d16b70; name = background>; layer = <CALayer: 0x302d75180>; contentOffset: {0, 0}; contentSize: {393, 270}; adjustedContentInset: {0, 0, 45, 0}; dataSource: <quran_ios.QuranReadViewController: 0x10246efa0>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant