全局设置导航栏是否半透明
[[UINavigationBar appearance] setTranslucent:NO];
设置为NO ,view y轴起点为导航栏高度
通过设置以下代码,起点从0开始
self
.edgesForExtendedLayout = UIRectEdgeNone;
全局设置导航栏是否半透明
[[UINavigationBar appearance] setTranslucent:NO];
设置为NO ,view y轴起点为导航栏高度
通过设置以下代码,起点从0开始
self
.edgesForExtendedLayout = UIRectEdgeNone;