Users Pricing

forum

home / developersection / forums / how to enable scrolling in scroll view in objective-c?

How to enable scrolling in scroll view in Objective-C?

zack mathews 2521 15 Feb 2016

I want to enable scrolling in our scroll view. I have created an app using scrollview and set an image. using this code:

UIImageView *imgView = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"wall-1.jpg"]];
scrollview.scrollEnabled=YES;
[scrollview addSubview:imgView];

In the above code I also set scrollEnabled property to YES using scrollview outlet, but scrolling is not working.
Please suggest me how can I enable the scrolling feature in our application.
Thanks.


zack mathews

Other


1 Answers

Tarun Kumar 15 Feb 2016 Accepted Answer