iOS|iOS translucent edgesForExtendedLayout和extendedLayoutIncludesOpaqueBars的关系

UINavigationBar和UITabBar都有translucent
1.translucent为YES时
extendedLayoutIncludesOpaqueBars设置无效
【iOS|iOS translucent edgesForExtendedLayout和extendedLayoutIncludesOpaqueBars的关系】可通过edgesForExtendedLayout设置控制器的view是否铺满全屏
2.translucent为NO时(也可以通过设置背景使其不透明)
extendedLayoutIncludesOpaqueBars默认为NO
edgesForExtendedLayout设置无效,需要将extendedLayoutIncludesOpaqueBars设置为YES才会生效
当UITabBar的translucent为NO时,会使safeAreaLayoutGuide的bottomAnchor (Masonry的mas_safeAreaLayoutGuideBottom)忽略UITabBar的高度。如果edgesForExtendedLayout为UIRectEdgeAll或UIRectEdgeBottom时,视图通过safeArea设置约束会被UITabBar遮挡。但UINavigationBar不会。

    推荐阅读