Questions tagged [uiscrollview]

Use this tag for all questions about scroll views on iOS. Do NOT use this tag for other platforms.

UIScrollView is the native scroll view system in iOS. It is part of Cocoa and UIKit. A number of other very common iOS classes, such as UITableView, are based on UIScrollView. UIScrollViewDelegate is the associated delegate.

Full Apple documentation for UIScrollView is at the usual Apple documentation site. It is on the internet. It can be found at https://developer.apple.com/reference/uikit/uiscrollview.

Use this tag only for the specific, iOS, UIScrollView class. For the native scroll views in other specific platforms, such as Android, use those tags.

If you genuinely have a rare, non-platform-specific, general conceptual question about scroll views, you could use the otherwise totally worthless tag.

12500 questions
4
votes
1 answer

Resize UICollectionView while scrolling

My collection view begins life short, at the bottom of it's view controller's view. When the user scrolls up a little bit, I'd like the collection to fill the view. I'd like it to shrink again when the user pulls down into the bounce area. Here's…
danh
  • 62,181
  • 10
  • 95
  • 136
4
votes
2 answers

UIScrollview in a Custom UICollectionViewCell Not Working

I'm trying to get a UIScrollView to work correctly inside of a UICollectionViewCell. The custom cell is being loaded in via a xib file and is a subclass of UICollectionViewCell. I had problems getting other controls working, such as a button and a…
4
votes
2 answers

UICollectionView does not always animate deceleration when overriding scrollViewWillEndDragging

I am creating custom paging for my UICollectionView. I want some of the cells at the bottom to hang off of the edge of the screen, however, with regular paging, scrolling to the next page means that if half of the cell at the bottom of the page was…
4
votes
1 answer

Strong or weak declaration to UIImageView and UIImage properties embedded in UIScrollView?

I have a UIScrollview embedded in a NavController, both dragged out in the iOS6 storyboard. In my scrollViewController viewDidLoad, I programatically add a UIImageView and keep a property for the image that goes into that UIImageView. @interface…
DanWebster
  • 141
  • 1
  • 5
4
votes
3 answers

How to determine if the keyboard is hiding a subview...?

I have a scrollview with multiple views on it. All these views have text field on them and once clicked the keyboard pops up. In certain cases the keyboard may hide this subview and I want to determine if this can be calculated in advance. If yes…
Ankit Srivastava
  • 12,347
  • 11
  • 63
  • 115
4
votes
2 answers

How to implement infinite horizontal and vertical scrolling in the UICollectionView in iOS 6?

I'm trying to implement infinite horizontal and vertical scrolling from within a UICollectionView in iOS 6. I have managed to get it working, but it's slow and choppy. There are similar questions asked on StackOverflow but the deepest any of them go…
4
votes
1 answer

how to implement loading more for table view when scroll to bottom?(i.e. pull up to refresh)

I want to load more data when view scroll to bottom,i.e. pull up to refresh, but I don't know how to display words like "Loading More..." as showing below and stop the tableview at that cell, because if use NSIndexPath *indexPath =…
remykits
  • 1,735
  • 4
  • 18
  • 20
4
votes
2 answers

Scrollview Scrolling with dynamic images on them and vertical/horizontal scrolling but one at a time

I am able to achieve horizontal scrolling with dynamic addition of images on them, with infinite scrolling and lazy loading of images as well. Actually, I am kind of stuck, about how to proceed with vertical scrolling of image in regards to…
Reno Jones
  • 1,979
  • 1
  • 18
  • 30
4
votes
4 answers

UIScrollView bug? float foo = scrollview.zoomScale crashes the app

In method viewForZoomingInScrollView: of the delegate to my scrollview I do the seemingly innocent: // scrollView is the parameter passed to this method float foo = scrollView.zoomScale Boom! Crash, hello gdb. Is this a known bug? Should I submit…
dugla
  • 12,774
  • 26
  • 88
  • 136
4
votes
4 answers

Loop UIScrollView but continue decelerating

I've set up an infinite scroll view and when it reaches 0 content offset I set it to max content offset and vice versa. i.e. [scrollView setContentOffset:CGPointMake(0,0) animated:NO]; This works but it stops the UIScrollView decelerating. Is there…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
4
votes
6 answers

scrollsToTop does not work

I am using PPRevealSideViewController. I have two ViewControllers in it. The middle one is a subclass of SideSwipeTableViewController and the left one is a subclass of UIViewController, that has a tableView inside it. Example apps for…
Denis Kutlubaev
  • 15,320
  • 6
  • 84
  • 70
4
votes
1 answer

Recognizing UIScrollView movement by pixel

I need to change UIScrollView subviews according to their place on the screen, so that they will get smaller while moving up and bigger while moving down. Is there any way to know the contentOffset with the change of every pixel? I catch the…
4
votes
1 answer

How to create an UIScrollView that allows paging and zooming of UIImageViews?

I have tried to make a UIScrollView that allows a paging of various UIImageView and zoom every image. My first idea was to create a UIScrollView to paging and then create a UIScrollView for every UIImageView that allows me to zoom that image. I know…
torhector2
  • 443
  • 1
  • 5
  • 19
4
votes
5 answers

UIScrollView Will not allow scrolling or interaction after rotated

In my -(void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration; method, I have code to reposition and resize a scrollview as the app rotates with the device. I do it with the…
Matt
  • 2,920
  • 6
  • 23
  • 33
4
votes
2 answers

UIScrollView like the new iOS App Store

I need to do something like the new app store as shown on the attached image however, i know that i have to use scroll view with some images or button inside but im wondering about the curves and sliding images, resizing while scrolling, im talking…
user1709502