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

scrollViewDidScroll not called -- scrollViewDidEndDecelerating is called

I have a custom view replacing the keyboard and I'm trying to get it to scroll offscreen when the user scrolls down. My original scrollViewDelegate methods worked EXCEPT there was a delay between user scrolling and view animation because I was…
OdieO
  • 6,836
  • 7
  • 56
  • 88
0
votes
1 answer

performSelector:afterdelay never called in scrollViewWillBeginDragging

I try to call a method after a delay when the user start to dragging a scrollView. This block below is called but the action define in this performselector: is called only when I stop to drag the scrollView - (void)viewDidLoad { [super…
0
votes
1 answer

UIScrollView subclass stops decelerating

I have subclassed UIScrollView and I have two instances of MyScrollView each in their own view controller, with a segmented controller to switch between them. Both view controllers are added as child controllers in a main container view. They are…
Echelon
  • 7,306
  • 1
  • 36
  • 34
0
votes
3 answers

How to hide the textLabel property of the default UITableViewCell from all UITableView rows?

I am playing with some UITableView coding and tried to hide the default textLabel property. I used the UIScrollViewDelegate protocol and used both -scrollViewDidScroll and scrollViewDidEndDecelerating methods to hide and show the label. The code…
Marco Almeida
  • 1,285
  • 3
  • 17
  • 39
0
votes
0 answers

UIScrollView Delegate Method Is Not Firing

I have added a ScrollView as a subview and confirm its delegate. contentView = [[UIScrollView alloc] initWithFrame:CGRectMake(0.0, 0.0, frame.size.width, frame.size.height)]; contentView.showsHorizontalScrollIndicator =…
Himanshu Joshi
  • 3,391
  • 1
  • 19
  • 32
0
votes
1 answer

UIScrollViewDelegate methods not called

I've implemented the methods, designated the view controller as a UIScrollViewDelegate, set the content size, and set the delegate property of the UIScrollView. For some reason, however, none of the delegate methods are being called. The application…
Casey Perkins
  • 1,853
  • 2
  • 23
  • 41
0
votes
0 answers

Problems zooming into multiple UIImageViews in UIView

so I know this has been posted numerous times (I have extensively searched this site along with many other resources for answers to no avail :C ) I am relatively new to iOS programming and am trying to make an image viewer with zooming and panning…
0
votes
2 answers

scrollViewWillEndDragging targetContentOffset.memory not changed in Xcode 6 beta 4

Here I have following code, trying to change the value of targetContentOffset, however I only got the println() working, view still not changed after I set offset func scrollViewWillEndDragging(scrollView: UIScrollView!, withVelocity velocity:…
Siming Chen
  • 1
  • 1
  • 2
0
votes
2 answers

SWTableViewCell cell scrollViewDidScroll message sent to deallocated instance

I used SWTableViewCell a third-party library to implement the swipe the UITableviewcell to open two buttons(save and delete) and click on those particular actions will occur. See the screen shot i attached When Swipe State is open and scroll the…
Babul
  • 1,268
  • 2
  • 15
  • 42
0
votes
2 answers

How to call ScrollViewDidScroll delegate method of UITableView in IOS

I have a UITableView in that I am loading photos with comments.. I have horizontal scrolling of images in each row and vertical scrolling of users photos horizontally with comments.. I want to update the single cell when ever the user commented the…
Vidhyanand
  • 5,369
  • 4
  • 26
  • 59
0
votes
2 answers

UITextView not scrolling in a loop

I have this UITextView that is updated in a loop. Text is appended to the end of the text view at every loop. The textview updates but does not scroll to show the end of the text view. The method I use to append the text is: -…
Duck
  • 34,902
  • 47
  • 248
  • 470
0
votes
1 answer

Conflicting Parameter Types for Scroll View Delegate

I have the function: - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale The declaration is copied from the documentation. However, I am getting a "convicting parameter types " warning 'CGFLoat'…
user3344003
  • 20,574
  • 3
  • 26
  • 62
0
votes
2 answers

uiscrollview not scrolling inspite of providing delegates

I have uiscrollview containing 3 uitextfields, 1 uitextview and 1uibutton. The content size of the uiscrollview is more than the frame size of uiscrollview. Even i have applied the delegate as self programmatically then too uiscrollview doesn't…
0
votes
2 answers

How can I set the width of the ScrollView content?

Im working on a scrollview and I want it to be with paging enabled, but when I try to set a custom width to the content I cant, I need someones help, Thanks! Heres what Im trying: - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView…
Karlo A. López
  • 2,548
  • 3
  • 29
  • 56
0
votes
1 answer

How to detect when a UIScrollView becomes scrollable?

I have a UIScrollView sitting inside a popover. It is pinned to the edges of the popover using constraints, and it's full content is able to be displayed in the popover without scrolling (so the scroll view is not scrollable). When I tap a…
Christian Gossain
  • 5,942
  • 12
  • 53
  • 85