UIScrollView doesn't scroll after upgrading to iOS7 / xcode 5

后端 未结 9 1934
抹茶落季
抹茶落季 2020-12-03 03:42

I have an app which in xcode 4.5 and ios 6.1 worked perfectly fine when scrolling. However, after downloading xcode 5 and iOS 7 my scroll views does not work anymore.???

9条回答
  •  时光取名叫无心
    2020-12-03 04:03

    I solved this by deselecting 'Use Autolayout' in the File Inspector pane of main view within the Scroll View.

    enter image description hereenter image description here

    If you want to keep 'Autolayout' enabled, try 'Editor -> Reslove Autolayout Issues -> Add Missing Constraints'. The key constraint appears to be 'Bottom Space to: Superview and in my case was -300, giving 300 scroll space on the botton of the view.

提交回复
热议问题