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

后端 未结 9 1955
抹茶落季
抹茶落季 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 03:44

    I didn't have a fixed height so I set the contentsize of the scrollview in code according to my label inside the scrollview

    CGSize scrollViewContentSize = CGSizeMake(320, myLabel.frame.size.height);
    [self.scrollView setContentSize:scrollViewContentSize];
    

提交回复
热议问题