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

UIScrollView w/ Large CATiledLayer + Overlay that renders fast

I've been working on something for weeks now (iOS) and I can't seem to figure out an acceptable solution. Requirements Display a 10000x10000 pixel background image Zooming and scrolling responsive Overlay on top that has custom drawing Elements in…
psy
  • 2,791
  • 26
  • 26
4
votes
1 answer

UIScrollView setContentSize crashes with uncaught NSRangeException

Call to setContentSize crashes the application after some of the UIScrollView's contents have been removed. int toolbarHeight = [[[self navigationController] toolbar] frame].size.height; int navbarHeight = [[[self navigationController]…
Gerstmann
  • 5,368
  • 6
  • 37
  • 57
4
votes
5 answers

UIScrollView setting page size dynamically

I've done quite a bit of looking into this but have been unsuccessful in finding a solution. I have a UIScrollView called scrollView inside of UIView. I'm using this scrollView in pagingEnabled mode. Inside of scrollView, I have 3 different views…
limon
  • 3,222
  • 5
  • 35
  • 52
4
votes
1 answer

UIScrollView setContentOffset:animated: weird behaviour

I am using a scroll view that contains a couple of text field. When the text field "begins editing", I perform 3 operations: I change the scroll view content inset (so that the whole view becomes apparent above the keyboard). I only do that if it's…
Abdalrahman Shatou
  • 4,550
  • 6
  • 50
  • 79
4
votes
2 answers

Contents of UIScrollView shifted after dismissing ModalViewController

I have a paged scrollview. Each page has a viewcontroller (buttonViewController) that manages a grid of buttons. If you press one of the buttons, the buttonViewController pops up another viewcontroller (detailViewController) modally. The problem is,…
Nathaniel Martin
  • 2,082
  • 1
  • 14
  • 11
4
votes
1 answer

In uiscrollviewdelegate, is it possible to set targetContentOffset to a negative value?

I have a UIScrollView which is the same width as its superview. It has a very wide contentSize and scrolls horizontally. I am trying to use the delegate method scrollViewWillEndDragging:withVelocity:targetContentOffset: to set targetContentOffset->x…
Killian
  • 414
  • 2
  • 10
4
votes
1 answer

Why does an empty UIScrollView have two subviews?

I have a need to calculate the height of of my content within a UIScrollView. I dropped an empty UIScrollView into the XCode Storyboard, gave it a custom class with this code: - (id)initWithCoder:(NSCoder *)decoder { self = [super…
Jonathan Beebe
  • 5,241
  • 3
  • 36
  • 42
4
votes
1 answer

UIScrollView scrollViewDidEndDragging not being called when scrolling quickly

I've implemented scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate in my UIScrollViewDelegate. The method gets called no problem except for when I scroll very quickly. If I do three rapid swipes, for instance, the…
puzzl
  • 833
  • 9
  • 19
4
votes
5 answers

swipe to delete in a UITableView which is embeded in a UIScrollView

I've encountered a problem the same as UIScrollview enable delete row by swipe It is a tableView and another view work as subViews of a scrollView , and I can't enable "swipe to delete" until I set the scrollEnable property of the scrollView to NO…
Bin_Z
  • 899
  • 1
  • 10
  • 15
4
votes
1 answer

PageControl with multiple xib's?

I'm having trouble with getting Page Control set up with multiple xib's. I searched on Stack on the internet for a while now but all I've been getting is getting Page Control set up with an Array with colors or images. Is it possible to get a…
sridvijay
  • 1,526
  • 18
  • 39
4
votes
2 answers

How do I make an UIScrollView to ignore single touches?

I have an UIScrollView inside another UIScrollView. The outer scroll view handles paging, the inner scroll view handles zooming (it’s an image gallery with zooming support). I need the inner scroll view to ignore single touches so that they go to…
zoul
  • 102,279
  • 44
  • 260
  • 354
4
votes
1 answer

UIScrollView ContentOffset not Reaching Edge of Screen

I'm having a problem with UIScrollView, not sure if it's a bug or not, but it's occurring when I implement a UIScrollView with its delegate and a zoomable / pannable image. First off, when I pan the image, it's possible that the contentOffset can…
Ser Pounce
  • 14,196
  • 18
  • 84
  • 169
4
votes
3 answers

UIWebView delegate vertical scroll event to parent, if scrolled to top or bottom

I have an UIWebView in an UIScrollView, which is paginated. Basically I want to switch between different webviews with scroll / fling gestures. Horizontally it works fine. If the webview is scrolled to the "border of the page", the scroll/pan event…
henrik
  • 708
  • 7
  • 14
4
votes
1 answer

How to add multiple UIImageViews to paging UIScrollView?

I have a UIScrollView with paging enabled with multiple subviews on the page: a UIButton, UIwebview and UIImageView. Both the webview and the image change on every page. This works fine. I used Apples scrolling image paging example to get me…
Keaulhaas
  • 83
  • 1
  • 6
4
votes
0 answers

Is there any method forwarding event from UIButton to UIScrollView?

I want to forward event from button which in the scrollview to scrollview when the button touched down and dragged inside. by Using button's "addTarget: action: forControlEvent" function, I can receive button down and drag event and also can move…
ytkang
  • 161
  • 2
  • 13
1 2 3
99
100