美文网首页
UIScrollView

UIScrollView

作者: CaptainRoy | 来源:发表于2019-09-25 17:11 被阅读0次
let width = self.view.frame.width
let height = self.view.frame.height
        
let scrollView = UIScrollView(frame: CGRect(x: 0.0, y: 0.0, width: width, height: height))
scrollView.backgroundColor = UIColor.orange
scrollView.contentSize = CGSize(width: 2 * width, height: 2 * height)
self.view.addSubview(scrollView)
代理方法
  • 正在滚动
scrollViewDidScroll
  • 将要开始拖拽
scrollViewWillBeginDragging

相关文章

网友评论

      本文标题:UIScrollView

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