why UIScrollView is leaving space from top in ios 6 and ios 7

前端 未结 7 1496
萌比男神i
萌比男神i 2020-12-04 08:21

\"enter

\"enter

7条回答
  •  生来不讨喜
    2020-12-04 09:01

    For me in xcode 7 and Swift 2.x I was populating a UIScrollView with a for loop and had to set the contentInset to zero.

    for image in images {
      self.scrollView.contentInset = UIEdgeInsetsZero
    }
    

提交回复
热议问题