Storyboard UIScrollView contentSize?

后端 未结 8 1734
-上瘾入骨i
-上瘾入骨i 2020-12-14 20:20

I feel like I have touched on every single possible cause for stopping this, but I have a UIScrollView in my Storyboard hooked up with an outlet and in the viewDidLoad I set

8条回答
  •  自闭症患者
    2020-12-14 20:38

    Trip14's answer worked for me. In swift I coded it as:

    override func viewDidLayoutSubviews() {
    
              (self.view as! UIScrollView).contentSize = CGSizeMake(600, 600)
            }
    

提交回复
热议问题