In one of my view controller (using Storyboard and ARC mode), i add two scrollView methods?
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
}
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
}
Both of them are not work on my app.
I already add scroll view as sub view of self.view
But, why these scroll view methods are not work?
Please, give me some ideas.
These are UIScrollViewDelegate methods.You have to properly setup the VC as the scrollview delegate and connect the delegate from xib to the VC
<UIScrollViewDelegate>to your VC.h File
@interface ExampleVC <UIScrollViewDelegate>makes the exampleVC a reciever for the UIScrollViewDelegate methods.
click on the scrollview in storyboard and there drag the delegate to
the view controller object and thats it)
EDIT
If you are creating a scrollview programatically
can do the job