12.一些属性设置

1.ViewController底部被TabBar挡住,在ViewController中设置

self.edgesForExtendedLayout = .top

2.ViewController顶部被navigationbar挡住,设置

self.edgesForExtendedLayout = .bottom

3.ViewController顶部和底部都被挡住,设置

self.edgesForExtendedLayout = .init(rawValue: 0)

你可能感兴趣的:(12.一些属性设置)