摘要: 我们在使用TableView的时候,有时会设置HeaderView,当我们滑动的时候,HeaderView不会随Cell滑出屏幕,而是会固定到导航栏下面。今天我们要实现HeaderView随滑动一起滑出屏幕显示。 方法:通过设置TableView的EdgeInset使HeaderView向上偏移,从 阅读全文
posted @ 2019-09-21 08:42 sims 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 1. 在 ViewController 中添加子视图时,导航栏遮挡添加的子视图 let bpView = BpView.init(frame: CGRect.init(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: UIScre 阅读全文
posted @ 2019-09-21 08:42 sims 阅读(432) 评论(0) 推荐(0) 编辑