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

why UIScrollView doesnt call it's Delegate?

the problem is I make a new UIScrollView at Xib and then link the delegate to owner.. some how the delegate doesnt called.. any clue? or simple example for UIScrollView sorry I am a new ios developer and thank in advance.. the code : at…
0
votes
1 answer

UIScrollVewDelegate methods not invoked

I have a UITableview, a UITextField and a few other elements inside a UIScrollView. The scrollview has 'scrollEnabled' set to NO until the UITextField becomes first responder. My Controller class is also set to be a delegate of UIScrollView. I can…
Howard Spear
  • 551
  • 1
  • 5
  • 14
0
votes
1 answer

drag for two UIScrollViews

I have two UIScrollViews, aScroll and bScroll. And the bScroll is the aScroll's subView. Problem I am facing is, i want to drag in bScroll and do not affect the aScroll. Can someone help me here?? Thanks. - (void)viewDidLoad { [super…
user1552201
0
votes
1 answer

scrollViewWillEndDraggin:WithVelocity:targetContentOffset delegate method bug

I am implementing a UIScrollView and its delegate in a UIViewController. It scrolls in the horiztonal way. WHat I want is to set "magnetism" when the view is dragged and is stabilizing. to do that, I am listening to the delegate, specially the…
0
votes
1 answer

In UIScrollview restrict a particular delegate from the uiscrollview delegate list

From the list of available UIScrollview delegate list . I want to restrict a selective uiscrollview delegate function namely: (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView; I want to restrict it from calling by the compiler . can…
0
votes
1 answer

Preventing screen redraw at max/min zoom of UIScrollView

My app has a relatively expensive screen redraw. In its original form, we had the minimum zoom of the UIScrollview set to 100% and the max at 400% scaling, and in scrollViewDidEndZooming, we redraw the screen. Our testers wrote up a bug that when…
RehcsifMit
  • 270
  • 1
  • 13
0
votes
2 answers

UIScrollview subviews show incorrect frames when enumerated

Hi guys i have an issue i cannot get my head around. I have broken down this issue into its own project and i can still reproduce it. I have a scrollview say with a 30 uibutton layed out. (for example) If i was to enumerate over the the subview and…
Dan
  • 1,447
  • 2
  • 14
  • 30
0
votes
0 answers

UIScrollView zoom issue

I have UIScrollView. I should show small image first, and big image , when I zoom image. If I use this code, everything is OK: - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollViewCalled { ImageScrollView *scroll = scrollViewCalled …
Paul T.
  • 4,938
  • 7
  • 45
  • 93
0
votes
2 answers

Can't set image in UIScrollView after zooming

I use ImageScrollView to show image. At the begining I show only small image. And when user tries to zoom, I load big image. First I wanted to do this using this code: - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollViewCalled { …
Paul T.
  • 4,938
  • 7
  • 45
  • 93
0
votes
1 answer

UIScrollView subclass and custom delegate: detect scroll events on the subclass and on the delegate

I'm creating an UIScrollView subclass. On this subclass, I need to detect the scroll events, but I also want to enable the detection of scroll events on a delegate. Also, this UIScrollView subclass needs a custom delegate. //…
Garoal
  • 2,364
  • 2
  • 19
  • 31
0
votes
1 answer

UIScrollView lags when adding UIView with multiple views

I've been working on a Crosswords app for a while and this problem keep returning no mater what i try. The actual game runs in an UIScrollView because the player should be able to zoom, pan etc. To the UIScrollview i have added a UIView. First i…
-1
votes
1 answer

Objective C: Detecting touch events on UIScrollView

I am making a book application using a scrollview for paging but i am having problem detecting touch event on it all the touch events are not working. is there a way that i could implement touch event on scrollview?
Ramiro
  • 229
  • 3
  • 14
-1
votes
1 answer

How to get the view which is centered(or visible to user) inside UIScrollview?

I have a UIScrollview with horizontal pagination, inside which there are five different view. These are scrolling perfectly as required. And now i also have five buttons on the top of my screen, on button action the scrollview will scroll to the…
Abhishek K
  • 15
  • 7
-1
votes
2 answers

Get type of UIScrollView inside UIScrollViewDelegate methods

I have a UIViewController that has UITableView and UICollectionView. I want to do certain tasks when UICollectionView is scrolled. I've extended UIScrollViewDelegate and wrote my code in func scrollViewDidEndScrollingAnimation(_ scrollView:…
Sikander
  • 447
  • 4
  • 26
-1
votes
1 answer

what is scrollViewDidScroll means?

I want to know this override function named "scrollViewDidScroll"means because i am now currently stuck at that which that doesn't work.Here is my code.I really want to know each steps by steps of the code i describe below. override func…
Thiha Aung
  • 5,036
  • 8
  • 36
  • 79
1 2 3
26
27