1.ViewController底部被TabBar挡住,在ViewController中设置
self.edgesForExtendedLayout = .top
2.ViewController顶部被navigationbar挡住,设置
self.edgesForExtendedLayout = .bottom
3.ViewController顶部和底部都被挡住,设置
self.edgesForExtendedLayout = .init(rawValue: 0)
1.ViewController底部被TabBar挡住,在ViewController中设置
self.edgesForExtendedLayout = .top
2.ViewController顶部被navigationbar挡住,设置
self.edgesForExtendedLayout = .bottom
3.ViewController顶部和底部都被挡住,设置
self.edgesForExtendedLayout = .init(rawValue: 0)