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

Detecting panning + decelerate of MKMapView

I'm trying to capture panning and the 'end of scrolling' on an MKMapView. Panning is easy to do with a gesture recognizer. However, MKMapView doesn't seem to implement a UIScrollViewDelegate in iOS 6. That makes the solution in Is there way to limit…
JeremyDay
  • 430
  • 6
  • 19
4
votes
1 answer

UIWebView Inside UIScrollView Html Links Not Working

I have added a UIWebView along with some labels inside UIScrollView (using StoryBoards) by adding it as a subview and then setting the ScrollView height to show all the html content of WebView that is loaded in it using loadHtmlString. The links in…
Jessica
  • 1,508
  • 15
  • 25
4
votes
2 answers

Static subview background image effect

In the latest Expedia app for iOS, they have a very interesting effect that I am trying to wrap my head around. The have two columns of infinitely scrolling subviews which I know can be accomplished with 2 scrollviews. The interesting part is that…
SonnyBurnette
  • 680
  • 3
  • 11
  • 25
4
votes
4 answers

Scroll a background in a different speed on a UIScrollView

When somebody does a wipe gesture to scroll the content from left to right, I would like to have a background image scrolling into the same direction, but at a different speed. Much like what these classic games did do 20 years ago (remember that,…
R. van Twisk
  • 434
  • 6
  • 14
4
votes
3 answers

Show delete button on wobbling image and delete that particular image

I have added images in scroll view. On long press i have given wobble animation to all images. i want to show delete button on the right top corner of every image as in iphone when we uninstall any application same like that. - (void)startWobble…
Pallavi
  • 249
  • 2
  • 10
4
votes
2 answers

UIScrollview content size when orientation changes

I have a scrollview with pagination. In viewDidLoad i check if the current orientation is landscape then i set its contentsize's height 440 if (UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation])) { [scroll …
4
votes
5 answers

UIPageControl not visible when combined with UIScrollView

I'd like to make use of a page control to switch between several viewControllers. I have the following viewController whose associated nib contains a UIScrollView and a UIPageControl. I've placed the scroll view above the page control by using…
4
votes
1 answer

Automatic scrolling scrollview

I have a question. I want to display the user some content in a UIScrollView. I want to autoscroll the UIScrollView fast from bottom to top (like in the apple stores iPad). I tried to use DDAutoscrollview (If someone knows), but it doesn't work for…
MasterRazer
  • 1,377
  • 3
  • 16
  • 40
4
votes
1 answer

UITableViewCell's height change after scrolling upwards?

Currently when scrolling upwards in my tableView I have found a strange and annoying bug. When I decide to release the "scroll", meaning I am dropping "the scroll" so the "View" will return to its normal position showing all of the TableView's…
Jesper Martensson
  • 1,238
  • 3
  • 18
  • 44
4
votes
1 answer

Scrolling when UIScrollView inside UIScrollView

I want to put a second UIScrollView inside of the first page of another UIScrollView. To scroll to page 2 of the first UIScrollView I now have to swipe right above oder below the second UIScrollView. Is there a way to ignore a right swipe while…
4
votes
3 answers

UIScrollView breaking when a new subview added

I'm fairly new to coding for the iOS platform and objective C in general. I'm writing a simple iPhone app utilizing storyboard that has a tall png file displayed via UIImageView embedded within a UIScrollView and a button next to it that will play…
Joseph
  • 145
  • 1
  • 9
4
votes
5 answers

UIScrollView will not scroll, even after content size set

My UIScrollView is a ~4500px horizontal view that the user needs to scroll horizontally through to view the content. I have set it up as follows: - (void)viewDidLoad { [super viewDidLoad]; sview.frame = CGRectMake(0, 0, 568, 320); …
nworksdev
  • 235
  • 3
  • 11
4
votes
4 answers

ios: how to get index of current ?UIscrollView page

I want to know index of current scrolled page in UIScrollView. I have searched through many sites by none helps. Any suggestions are welcome.
user1564754
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

how to know if UITapGestureRecognizer has been add to subview

I adding subviews programmatic. for each subview I'm adding a gesture reconognizer: UIImageView *imageView = [[UIImageView alloc] initWithImage:image]; imageView.frame = CGRectMake((position*1024)+200,0,image.size.width,image.size.height); …
Juan
  • 627
  • 2
  • 9
  • 27
4
votes
1 answer

setFrame of UILabel property of .xib doesn´t work

i make the next method in a viewController -(void)setupDocsLabel:(NSMutableArray *)documents{ self.lDocumentos.frame = CGRectMake(self.lDocumentos.frame.origin.x,…
sheltrinec
  • 121
  • 1
  • 5