Questions tagged [uiscrollviewdelegate]

The methods declared by the UIScrollViewDelegate protocol allow the adopting delegate to respond to messages from the UIScrollView class and thus respond to, and in some affect, operations such as scrolling, zooming, deceleration of scrolled content, and scrolling animations.

The methods declared by the UIScrollViewDelegate protocol allow the adopting delegate to respond to messages from the UIScrollView class and thus respond to, and in some affect, operations such as scrolling, zooming, deceleration of scrolled content, and scrolling animations. On UIScrollViewDelegate, you can find the following methods:

Responding to Scrolling and Dragging:

– scrollViewDidScroll:

– scrollViewWillBeginDragging:

– scrollViewWillEndDragging:withVelocity:targetContentOffset:

– scrollViewDidEndDragging:willDecelerate:

– scrollViewShouldScrollToTop:

– scrollViewDidScrollToTop:

– scrollViewWillBeginDecelerating:

– scrollViewDidEndDecelerating:

Managing Zooming:

– viewForZoomingInScrollView:

– scrollViewWillBeginZooming:withView:

– scrollViewDidEndZooming:withView:atScale:

– scrollViewDidZoom:

Responding to Scrolling Animations:

– scrollViewDidEndScrollingAnimation:
398 questions
4
votes
1 answer

How to zoom a UIScrollView programmatically the exact same way as one I'm manually zooming

I have 2 UIScrollViews side by side, and a feature I'm working on is the ability to pinch and zoom on 1 UIScrollView, and have the other one next to it respond in the EXACT same way as the one I'm tapping. Of particular interest is zooming in on the…
Stephen J.
  • 3,127
  • 4
  • 20
  • 28
4
votes
1 answer

How can I get a UIWebView's UIScrollView delegate methods called from within a standard UIViewController?

So I just have a standard UIViewController with a UIWebView in it that displays a pdf. For the app functionality, I have need to be able to respond to the UIWebView's nested UIScrollView events like scrollViewWillBeginDragging, scrollViewDidScroll,…
Stephen J.
  • 3,127
  • 4
  • 20
  • 28
4
votes
1 answer

How to change UIScrollView with isPagingEnabled autoscroll drag trashhold

I have horizontal UIScrollView with isPagingEnabled = true containing few pages. If I drag scrollview content and release finger it scrolls to next page only if I dragged at least 50% of scrollview width. I want to auto scroll to next/previous page…
Martin Vandzura
  • 3,047
  • 1
  • 31
  • 63
4
votes
3 answers

My ScrollView is not scrolling vertically

I'm writing an app in Xcode 9 with Swift 4 and I've added a UIScrollview to a view which is intended to show a jPeg which is 3030 pixels in height. I've added the scrollview to my view and assigned the delegate in Outlets in IB. I've attached the…
user616076
  • 3,907
  • 8
  • 38
  • 64
4
votes
1 answer

scrollViewDidEndScrollingAnimation not called

I am trying to call a method after my scroll animation is complete. I have a Table View and I set the delegate in viewDidLoad like thisself.tableView.delegate = self based on this , but that didn't help. Basically, If a button is clicked, it…
user1807157
  • 101
  • 2
  • 9
4
votes
1 answer

UITableView not executing to scrollViewDidScroll or scrollViewShouldScrollToTop

I have a private table view in my UIViewController as follows UIViewController { @private UITableView *gTableView; ... } in my implementation i have…
Anand
  • 4,182
  • 6
  • 42
  • 54
4
votes
0 answers

StackOverFlow , Twitter, ... IOS App... how they handle Scrolling in their Pages

How They Handle ScrollView and SubTable? when parent scrollview is at top, scrolling up, move it to bottom and then child tableview scroll... StackOverFlow IOS APP : https://aorb.ir/content/sackoverflow.mp4 Twitter IOS APP…
4
votes
1 answer

Tap on ScrollView calls `scrollViewWillBeginDecelerating` when the scrollView is set pagingEnabled to YES

When i tap on ScrollView it call methods scrollViewWillBeginDecelerating and scrollViewDidEndDecelerating even after the scrollView's is set pagingEnabled to YES I have scrollView with subViews and trying to set contentOffset according to subViews.…
4
votes
0 answers

Slow animation of table view deceleration

Trying to set targetContentOffset in scrollview delegate method to snap tableView to desired position(top,middle,bottom),but after snap action the tableView decelerate to the position but its not finishing animation very fast it gets slow down after…
Dilip Lilaramani
  • 1,126
  • 13
  • 28
4
votes
0 answers

Decrease speed of uitableview scrolling in ios?

I want to decrease the speed of UITableView scroll speed. I've tried using decelerationRate property. I changed this property to UIScrollViewDecelerationRateNormal and UIScrollViewDecelerationRateFast but couldn't feel the change. I couldn't figure…
user3804063
  • 809
  • 1
  • 14
  • 32
4
votes
2 answers

UIScrollView notifications

I'm coding an app that works much like Apple's Weather.app: There's a UIPageControl at the bottom and a UIScrollView in the middle of the screen. In my code, I implemented the - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView method to…
ryyst
  • 9,563
  • 18
  • 70
  • 97
4
votes
1 answer

GestureRecognizers not receiving touch events while UIScrollView is decelerating

I have a horizontally scrolling UICollectionView populated with vertically scrolling UITableViews (both being subclasses of UISCrollView). When a scroll gesture begins scrolling in either direction, no other gesture recognizers are recognized until…
4
votes
3 answers

Button click not responding in ScrollView when I create outlet of ScrollView in iOS

I have a Button1 outside ScrollView and another Button2 inside scrollview. I am using storyboard. I have used drag drop segue from both buttons to a different view. Button1 works fine, the problem is with Button2, it doesnt work no matter how many…
Francis F
  • 3,157
  • 3
  • 41
  • 79
4
votes
6 answers

UIScrollView delegate methods not calling properly

In order to scroll up and down i need to call two methods for that I have used the below method .I am using scrollview delegate method for UICollection as it is the subview for UIScrollView.Here is the code that I have written but the scroll is not…
UserDeviOS
  • 89
  • 1
  • 2
  • 10
4
votes
2 answers

UIScrollView do not scroll

I have a UIScrollView that do not scroll at all. If I enable bouncing, I can scroll far enough to the sides to see that there is content outside of the view, but it snaps right back to the origin when I release. I have paging turned on, but I get…
Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82