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

前端 未结 7 1486
萌比男神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
    }
    
    0 讨论(0)
提交回复
热议问题