Quote:
Originally Posted by kum
Great tutorial. However I still have some issues.
I enabled paging so that I could scroll through different views. The problem is that only the first view is able to detect touches and the others can't. Why is this?
|
This might be the case, when you have not set the size of the scroll view's content view correctly. So if you have a scrollView and a contentView as it's child (containing your different views), you should be doing something along the lines:
Code:
CGRect contentFrame = contentView.frame;
contentFrame.size.width = newWidth; // set new width here
contentFrame.size.height = newHeight; // set new height here
contentView.frame = contentFrame;
scrollView.contentSize = contentView.frame.size;