对于有NavBar的情况:
为了让视图从NavBar 下面开始布局,ViewCtrl 做如下设置:
edgesForExtendedLayout = UIRectEdgeNone;
extendedLayoutIncludesOpaqueBars = NO;
modalPresentationCapturesStatusBarAppearance = NO;
navigationController.navigationBar.translucent = NO;
本文介绍如何通过设置ViewCtrl的属性让视图从NavBar下方开始布局,包括设置edgesForExtendedLayout为UIRectEdgeNone、extendedLayoutIncludesOpaqueBars为NO等。
对于有NavBar的情况:
为了让视图从NavBar 下面开始布局,ViewCtrl 做如下设置:
edgesForExtendedLayout = UIRectEdgeNone;
extendedLayoutIncludesOpaqueBars = NO;
modalPresentationCapturesStatusBarAppearance = NO;
navigationController.navigationBar.translucent = NO;
429
138
169

被折叠的 条评论
为什么被折叠?
