UIScrollview界面内嵌滑动
2021-01-28 本文已影响0人
摸摸头发
let scrollView = UIScrollView()
scrollView.showsVerticalScrollIndicator = false
scrollView.showsHorizontalScrollIndicator = false
view.addSubview(scrollView)
scrollView.snp.makeConstraints { (make) in
make.left.right.top.equalToSuperview()
make.bottom.equalTo(-hb_adapteWidth(64)-hb_safeAreaBottomMargin)
}
let container = UIView()
scrollView.addSubview(container)
container.snp.makeConstraints { (make) in
make.edges.equalToSuperview()
make.width.equalTo(hb_screenWidth)
}