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
0 answers

Making a android-desktop-style PageView

This is a very simple example to achieve the android multi screen wallpaper effect on iOS, written in Swift. Sorry for the poor and redundant English as I am a non-native speaker and new to coding. Many android phones have a multi screen desktop…
lqt0223
  • 31
  • 6
0
votes
0 answers

Swift Stop UIScrollVIew Scrolling When scrollViewDidEndDragging Called

I am attempting to disable scrolling a UIScrollView after scrollViewDidEndDragging is called. I want the UIScrollView to only scroll when the user is scrolling with his/her finger. I haven't found a good way to implement this yet. I have attempting…
Mike Walker
  • 2,944
  • 8
  • 30
  • 62
0
votes
1 answer

Cannot create a view with a UIScrollView

I am looking for some help for a program I am developing. Basically, it contains two views. The first view has a button and a action related to it leads me to my next view where there is a scroll view for three pages ( as in the PageControl sample…
Viraj
  • 1,880
  • 22
  • 31
0
votes
1 answer

Can a UIViewController conform to a UIScrollViewDelegate and then lead to the next view where there are pages to be scrolled?

I am trying to develop a program wherein which the first screen contains a button and after the click of the button, it should take me to a scroll view and a page control. I have successfully developed these two modules separately. But I am facing…
0
votes
1 answer

How to make Scrollable the Storyboard Scrollview?

i am using storyboard scrollview but its didn't scroll ,how to make it as scrollable. This is my code -(void)scrollView { self.scrollViewBtn.pagingEnabled=YES; self.scrollViewBtn.scrollEnabled=YES; for(int i=0;i<[[arrFullSubCategory…
Kishore kumar
  • 143
  • 1
  • 14
0
votes
1 answer

Duplicate code in UIScrollViewDelegate methods

I having recently implemented a solution that allows me to know when a scroll view has finished scrolling. This is so that when I scroll my tableview I only call a specific method once the tableview has stopped moving completely. I followed the…
pls
  • 1,522
  • 2
  • 21
  • 41
0
votes
1 answer

using scrollViewWillEndDragging to ensure UIScrollView stops at defined increments

I would like my UIScrollView to naturally glide to endings at certain incremental values, corresponding to every 50 points of width of a horizontally-scrolling UIScrollView To do this, I customed scrollViewWillEndDragging, like so (as recommended,…
sunny
  • 3,853
  • 5
  • 32
  • 62
0
votes
1 answer

UITableView/UIScrollView scrollToItemAtIndex

I'm trying to call [tableView scrollToItemAtIndex: [tableView indexForCell: firstVisibleCell] atScrollPosition: UITableViewScrollPositionTop animated:YES]; To force my table to 'snap' to the first visible item. This works fine, but I only get a…
Kyle
  • 17,317
  • 32
  • 140
  • 246
0
votes
4 answers

Using delegates: unexpectedly found nil while unwrapping an Optional value

I have two ViewControllers, assume one is named MainVC and the other one is named GetCameraRollImageViewController. In the second one, there is a UIScrollView which holds a UIImageView, since I'm using segue to show the second view controller, I've…
Maysam
  • 7,246
  • 13
  • 68
  • 106
0
votes
1 answer

ScrollView overlapping when stepper is selected

Ok I have an unexpected run time issue/ error with my iOS app. I put a scroll view and stepper which increment based on items parsed from a webservice. Now whe scroll view populates when user select the Stepper and now that is working fine. My…
Cockpit Aliens
  • 411
  • 6
  • 18
0
votes
3 answers

Is there a 'willSet' & 'didSet' I can intercept for UIScrollview.contentOffset?

I have a situation where I need to gracefully move a frame when the contentOffset.y is a negative value. The problem is I don't want to get the contentOffset call AFTER the content has already been dropped below 0. Is there a willSet call where I…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
0
votes
1 answer

UIScrollView's delegate methods not firing

I can't get the viewDidScroll method to fire in my custom class... I know, I know this has been in multiple stackoverflow posts... I have read dozens... Please help! Following directions from other S.O. posts, I have added the protocol in my .h…
user3369429
  • 130
  • 1
  • 6
0
votes
2 answers

Remove code duplication from 2 implementations of delegate methods

I've got a ViewController class and a View class. The ViewController has a UIScrollView and the View has a UITableView, and both are delegates of UIScrollViewDelegate. Both the View and the ViewController make use of the scrollViewDidScroll:…
JakeP
  • 1,736
  • 4
  • 23
  • 31
0
votes
1 answer

How to animate deletion of a label?

I have a view controller that have a scroll view that bounce horizontally , and in this scroll view I have a label. I can now hold the label and scroll it down, and if I release it will bounce up back. What I want is that: When I scroll the view y…
0
votes
1 answer

How to show/Hide UINavigationBar based on UITableview scroll up and down?

I just want to show UINavigationBar initial and I just want to hide the bar when the user starts to scroll down to view the other items. Once the user started to scroll up I want to show the navigation bar again with animation. (Ex: Instagram iOS…
Yuvaraj.M
  • 9,741
  • 16
  • 71
  • 100