iOS开发笔记-140: swift5-UIScrollView

2024-09-23  本文已影响0人  原味蛋炒饭

topBgScrollV.frame = CGRect(x: 0, y: 15, width: kScreenW - 20, height: 175)
        topBgScrollV.isPagingEnabled = true
        topBgScrollV.clipsToBounds = false
        topBgScrollV.showsHorizontalScrollIndicator = false

   for index in 0..<levelA.count {
            let bgV = UIView(frame: CGRect(x: 15 + topBgScrollV.width*CGFloat(index), y: 0, width: kScreenWSpace15, height: topBgScrollV.height))
}

上一篇 下一篇

猜你喜欢

热点阅读