Reputation: 7021
I'm trying to get familiar with the UIScrollView
. I try to set the UIScrollView's contentSize
to full width
of the screen and ten times
the heigh
t of the screen in the corresponding ViewController's viewDidLoad
method. However, when I tried to run it on the iOS simulator
, I found that the view can't be scrolled
. Please kindly help to give some hints & opinion.
Thanks!
Upvotes: 1
Views: 1407
Reputation: 6067
You need To check in your Code See
1)Check whether the UserInteraction enabled For The UIScrollView
if not Please Do as
[theScrollView setUserInteractionEnabled:YES];
EDIT
2)Please Make Sure You have Enabled The Scrolling of UIScrollView
theScrollView.scrollEnabled = YES;
Thanks.
Upvotes: 1