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
7
votes
1 answer

scrollViewDidEndDecelerating detect which collection view in action

I use this method to organize paging: - scrollViewDidEndDecelerating When I scroll my UICollectionView I change some content on my screen. But I have few UICollectionView on my screen and I need it just for one.
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
7
votes
1 answer

What does inout CGPoint * mean as a parameter?

In the UIScrollView delegate methods, there's: scrollViewWillEndDragging:withVelocity:targetContentOffset: and the last parameter is: (inout CGPoint *)targetContentOffset I'm curious as to what the inout means and why CGPoint is a pointer. I tried…
c0sic
  • 73
  • 1
  • 3
6
votes
2 answers

Why can't I store a UIWebView's UIScrollView delegate property anymore?

Before ios5 I was able to access a UIWebView's UIScrollView delegate like this: for (id subview in webView1.subviews){ if ([[subview class] isSubclassOfClass: [UIScrollView class]]) { UIScrollView * s = (UIScrollView*)subview; …
Lizza
  • 2,769
  • 5
  • 39
  • 72
6
votes
3 answers

How to create a paging UIScrollView with "oversized" pages

Is there a suggested way to create a paging UIScrollView that has pages wider than the bounds of the UISrollView? I would need something like this. normal scrolling within page2 and paging mode with the "rubberband" effect on the edges of the…
Matthias Bauch
  • 89,811
  • 20
  • 225
  • 247
6
votes
2 answers

observe scroll view's 'dragging' property but received no notification

I have a custom UIView that is added to as a subView of a UIScrollView, and I want that UIView automatically repositioned whenever the UIScrollView scrolls. In addition to observe the UIScrollView's contentOffset property(which works fine), I also…
5
votes
3 answers

UITableView pull to refresh causing flickering. How to prevent it?

I'm doing that pull-down-to-refresh thing. In scrollViewDidEndDecelerating I check if the offset is past a certain point and in scrollViewDidEndDragging I set the contentInset so as to keep the pulled-down section visible. However, this results in…
akaru
  • 6,299
  • 9
  • 63
  • 102
5
votes
3 answers

UITableView tap not working first time after constraints change

IMPORTANT: My problem is not that I'm implementing didDeelectRowAt instead of didSelectRowAt. Already checked that :) I have a UITableView that is shown on part of the screen in a modally presented view controller. When the user is dragging it…
nikmin
  • 1,803
  • 3
  • 28
  • 46
5
votes
1 answer

Default implementation of protocol implementing protocol

I'm trying to create a protocol that would be implemented by certain classes, all of them should also implement UIScrollViewDelegate. What I thought of is for my new protocol to implement the protocol UIScrollViewDelegate. protocol MyProtocol:…
5
votes
0 answers

Scroll outer tableview with inner tableview and vice versa when headerview reaches top

I realize variations of this question have been asked, but I'm having trouble connecting the dots into a coherent solution for my problem. So here's my scenario: I have a UITableView that has 2 sections. Section 1 has no header view, and 1 cell.…
5
votes
0 answers

Why is UIScrollView's contentSize adjusted when zooming?

With the code below, I see a red square appear which I can scroll around (because scrollview's content is 4x screen). But once I start zooming out (scale < 1.0), the scrollview's contentSize immediately jumps to scale times the iPad's screen size.…
meaning-matters
  • 21,929
  • 10
  • 82
  • 142
5
votes
2 answers

how to zoom in or out in uipageviewcontroller?

I have an uipageviewcontroller and set a child viewcontroller in uipageviewcontroller named as contentviewcontroller. thePageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl…
5
votes
3 answers

UIImageView inside UIScrollView Pans Too Far

I have a problem where I have a UIImageView inside a UIScrollView. In Interface Builder, the UIScrollView takes up the entire screen, and the UIImageView takes up the entire UIScrollView. The problem is that when I have an image that is landscape…
Jacob Joz
  • 732
  • 1
  • 11
  • 29
5
votes
1 answer

Horizontal Parallax Scrolling UIScrollView iOS

I'm trying to implement horizontal parallax on a paging scroll view which makes it so that one view appears to advance faster in the x direction but "lands" in the same spot (for example, say (0,0)). Here is my general setup / view…
nmock
  • 1,907
  • 2
  • 20
  • 29
5
votes
2 answers

iOS6 ScrollBarShouldScrollToTop not firing/ ScrollView Delegate issue

I am adding a dummy ScrollView to my app to detect a user click on the status bar, to performa an event in my program.. I am creating it in the ViewDidLoad: //Dummy Scroll is for the tap on status bar to work UIScrollView *dummyScrollView =…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
5
votes
3 answers

Detect sudden scroll stop in UIScrollView

I would like to know how to use the UIScrollViewDelegate to detect when the scroll view stops moving suddenly because the user has touched and held the screen after momentum has been initiated from a fast pan. The scrollViewDidEndDecelerating:…
Barjavel
  • 1,626
  • 3
  • 19
  • 31
1 2
3
26 27