美文网首页
UIScrollview界面内嵌滑动

UIScrollview界面内嵌滑动

作者: 摸摸头发 | 来源:发表于2021-01-28 16:57 被阅读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)
        }

相关文章

网友评论

      本文标题:UIScrollview界面内嵌滑动

      本文链接:https://www.haomeiwen.com/subject/lukxtltx.html