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

Decelerating delegate method of the scrollView is not called for vertical scrolling?

The scrollView delegate method scrollViewDidEndDecelerating:scrollView is not get called for vertical scrolling(It is working well for horizontal scrolling) I don't know how to make it inform the View controller about the deceleration of vertical…
vignesh kumar
  • 2,310
  • 2
  • 25
  • 39
0
votes
1 answer

Delegate methods of UIScrollView inside a UIWebView not called for horizontal scrolling

I have a UIWebView which has both horizontal and vertical content off the visible screen. I set my controller to be the delegate of the UIWebView's UIScrollView, and noticed that when I scroll horizontally, scrollViewDidScroll, scrollViewDidScroll…
0
votes
2 answers

How to unblock pan and pinch events in a UIScrollViewDelegate?

I have a UIView which has a UIScrollView subview and is a UIScrollViewDelegate. Since I've implemented viewForZoomingInScrollView I stopped getting pan and pinch events for the UIView. How can I get these events back?
Ata01
  • 303
  • 4
  • 19
0
votes
1 answer

Adding UIPangesture for UIButton within UIScrollview to move over the all view

In my project i am having scroll at bottom and table at top. Inside scrollview i am adding 10 buttons.for each button i had pan gesture to move around the screen.when the button intersect with table is will add a picture in tableview. But the pan is…
0
votes
1 answer

UIScrollView horizontal scroll not working

I have the following setup: On top of a UIViewController I've set a UIScrollView with size 320 x 56. Inside the UIScrollView I have a UIView with size 640 x 56. The UIScrollView has the autoresize prop uncheked and it's scrollable horizontally…
user1791567
  • 1,388
  • 1
  • 16
  • 29
0
votes
1 answer

Incorrect behavior of the scroll's indicator

I have UIScrollView. I set contentOffset using the code : [UIView animateWithDuration:0.2 delay:0 options:UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionCurveEaseOut animations:^{ [comicsScrollView…
0
votes
1 answer

iOS iPad App: Delegates not called for ViewController with two UIScrollViews and a UIPageControl (delegate functions for paging NOT CALLED)

For my iPad App, I have a main ViewController which contains two UIScrollviews and a UIPageControl. The Problem is that the delegates for the paging are not getting called. Here is the layout: Selecting a button in the lower thumbScrollView needs…
CoolDocMan
  • 637
  • 7
  • 29
0
votes
1 answer

How to zoom a single image in a photo scroller (UIScrollView)

I have a UIScrollView which has about 10+ images laid out horizontally using the following code adapted from apple sample code: - (void)layoutScrollViewImages { UIImageView *view = nil; NSArray *subviews = [scrollView subviews]; CGFloat…
benbeel
  • 1,532
  • 4
  • 24
  • 38
0
votes
1 answer

Zooming image smaller than UIImageView

I want to have a larger frame than an image so i do something like this: And of course i have UIScrollViewDelegate and i handle the zooming. But there is one problem. When i zoom picture i can scroll to this "blue" empty space in a zoom mode. After…
Jakub
  • 13,712
  • 17
  • 82
  • 139
0
votes
1 answer

scrollview sub uiscrollviews uiimageview viewForZoomingInScrollView

I have main UIScrollView mainScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 440)]; mainScrollView.pagingEnabled = YES; imageScrollView.contentSize = CGSizeMake(320 * [myImage count], 440); , which contain many sub…
piam
  • 653
  • 6
  • 13
0
votes
1 answer

Keeping the State of UIScrollView iOS

I am implementing UIScroller View into my iPhone App. I have around 50 button in my scrollview and once a user click a button the Action will take him/her to another UIViewController. It is working fine and everything is oki. But once the user…
BigAppleBump
  • 1,096
  • 12
  • 26
0
votes
1 answer

Why can't I add a UIScrollView to a UIImageView (with it working properly)

I'm working on an app. Here I describe a simplified version of a strange problem I am experiencing. I have a storyboard created View Controller with a UIImageView also created in the storyboard. I then have the following h and m files which aim…
0
votes
0 answers

UIScrollView scrollViewDidScroll not firing

I have a UIScrollView that has a bunch of text in it. As the user scrolls up I create a little color-to-transparent view at the top so the text doesn't look like it just drops off. I have the scrollView working fine, delegates set, etc. Which all…
random
  • 8,568
  • 12
  • 50
  • 85
0
votes
3 answers

Replacing image in UIScrollView on selected item

I created simple UIScrollView that have images. Each time an image pressed i want to change that image, how can I do it? I creating this UIScrollView and initializing it with NSMutableArray with images. UIScrollView *myScroll = [[UIScrollView…
vadim
  • 119
  • 3
  • 14
0
votes
1 answer

Remove glitch in implementing UIScrollView Album during transition

Have implemented a UIScrollView album where in the +2 and -2 positioned SubViews are generated when scrollViewDidEndDragging is called but adding the Subviews is a costly operation and hence the slide through is not so very smooth. The screen sticks…
rahulg
  • 2,183
  • 3
  • 33
  • 47