Search code examples
iphoneios7uiscrollviewios8xcode6

UIScrollView scrolls on all the simulators but not on my iPhone


So after figuring out how scrollView works, I've implemented it with the following code:

self.scrollView.delegate = self;
self.scrollView.userInteractionEnabled = YES;
CGRect view = CGRectMake(0, 0, 320, 750);
self.scrollView.contentSize = view.size;

The above code works as intended on ALL simulators in Xcode 6. However, when I run it my phone (iphone4s on ios7), the scroll does not function at all. Are people experiencing the same problems since the new release? Or am I missing something I've learned from the documentation?


Solution

  • I did not try Vishu's answer, but what I did was update to iOS 8 so it's compatible with Xcode 6 and it worked!