uiscrollview

Detect number of fingers in UIScrollView swipe

Questions similar to this have been asked all over, but I haven't been able to find a solution to my specific problem, so here goes. I have a UIViewController with a UIScrollView in its view. Within the scrollview, I have a number of regular uiview subviews. I want to be able to detect whether the scrollview swipe was with one or two fi...

Programatically scroll a UIWebView iPhone SDK

Hi does anybody know how I can programatically scroll a UIWebView in Objective-C (iPhone SDK)? The only solution I can think of is to put it inside a UIScrollView and programatically scroll that, however this presents the problem that the web view is often the wrong size and therefore the bottom of the page is cut off when scrolling. I ...

Optimizing a UIScrollView with a lot of subviews

Hello, I have a UIScrollView that I am using to simulate a UITableView like interaction because rows are a bit more complex than what UITableView has to offer. I have 4 UILables a UIImageView and a UIButton for every row. The end result is a lot of subviews. Even with only 10 rows,the scroll view that looks fine in the simulator bu...

iPhone scrollView add elements dynamically with id

Hey guys, I want to populate a scrollView with quite a few different UI elements. Therefore I thought I would write a method that remembers the current Position in the scrollView and just adds the element to the scrollView at the current Position. Something like: - (void)addUIElement:(id)element withWidth:(CGFloat)width andHeight:(...

UIScrollView background image scrolls faster than content

Hi, i just noticed, having a backgroudn image inside of a UIScrollView along with some other UI-Elements, that they scroll with different speed. i created a UIScrollView child in my main view, added this testing code: -(void)viewDidLoad { [super viewDidLoad]; oRulerYear.backgroundColor = [UIColor colorWithPatternImage: [UIImage image...

iphone-sdk: UIScrollView does not scroll!!

hi, i just can't get my scroll view to actually scroll.. everything displays fine except it just won't scroll..... here's my code: - (void)viewDidLoad { [super viewDidLoad]; UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 600)]; scrollView.contentSize = CGSizeMake(320, 600); scrollView.scrollEnabled...

How can I programmatically force-stop scrolling in a UIScrollView?

Note: The answer given here doesn't work for me. I have a UIScrollView (not a table view, just a custom thing), and when the user takes certain actions, I want to kill any scrolling (dragging or deceleration) inside the view. I've tried doing e.g. this: [scrollView scrollRectToVisible:CGRectInset([scrollView bounds], 10, 10) animated:N...

Image Paging Like the iTunes App Store, in a UITableViewCell

The specific thing I am looking at doing can be found on the App Store Application when you view an App. The screenshots of an app can be swiped from left to right to view. From what I can tell they have a UITableView with different cells holding the content. And for that one UITableViewCell where the images are Swiped left and right the...

How to implement a cyclic UIScrollView?

How to implement a cyclic UIScrollView? That is to say, when you scroll to the very left item then the UIScrollView will show the very right one. Any help would be appreciate. ...

Scrolling a UITableView inside a UIScrollView

I have a UITableView which is a subview of a UIView, then that UIView is a subview of a UIScrollView. How do I detect the touches that should scroll the UITableView? The UITableView can get item selection events (a cell in the table is selected/tapped) just fine, except that you have to hold down on the cell before it fires. But I can't...

UIScrollView not showing

I have a simple ViewController that looks like this: @interface MyViewController : UIViewController<UIScrollViewDelegate> { UIScrollView *scrollView; UILabel *label; } ... @property stuff ... Now, what I'm trying to do with this Controller is have a ScrollView handle a really large label of text that I have. So in the viewDidLoa...

Creating a custom UIView that handles its own scrolling

I have a custom-drawn UIView (i.e. uses drawView to render itself). The data to be displayed will usually be larger than the screen can show, so I want to include scroll view functionality in the view so clients of the class don't have to deal with it, and so the custom view can handle lazy loading of data as it's scrolled. But how do ...

Custom UIPickerView Background

So I want to change the UIPickerView background to add a black rectangle next to the white part of the scroller, a la the Convert app. However I'm not sure how to go about doing that. I know there's no direct way to do it, but I've also looked at trying to write my own UIPickerView from scratch using UIScrollView. This didn't seem ver...

UIScrollView still receives scroll events underneath a UIButton

I have a full-screen UIButton to capture all touch events, so that the scrollView underneath doesn't scroll. However, for some reason, it's not working. Can someone tell me a way to create a view that will capture tap and swipe events so this won't happen? Thanks! ...

UIScrollView Infinite Scrolling

Hi, I'm attempting to setup a scrollview with infinite (horizontal) scrolling. Scrolling forward is easy - I have implemented scrollViewDidScroll, and when the contentOffset gets near the end I make the scrollview contentsize bigger and add more data into the space (i'll have to deal with the crippling effect this will have later!) My...

UISrollView Indicator Bar Question

Hello All, I was looking at the Apple docs for UIScrollView and saw that the constants for UIScrollView Indicator bars are "default", "black", and "white". I was thinking about using a scrollView without showing the indicator bar on the side of view. I have a very specific case and the bar is making it look awkward and actually seems to...

UIScrollView setContentSize

i have one trouble, me need make scrollview with content of pdf(pages), this content has size of first 8 pages, and when i already see 8 page, i need expand content size for new pages and to do so, that scrollview show me new pages, but he shows pages from start scrollview again. What i need to implement? ...

UIScrollView with embedded UIWebView not scrolling after holding

Hi, I have a UIWebView which is embedded in a UIScrollView. The webView is resized so that the scroll view manages all the scrolling (I need control over the scrolling). In the webView I have disabled userSelection via '-webkit-user-select: none;' Everything is working fine except one annoying detail. When I hold down my finger on the...

pragmatically scroll UIScrollView upon shake gesture.

HI, I have a view that has three UIScrollViews on the screen. I want to randomly scroll the UIScrollViews to different positions whenever a user shakes the iPhone, but I am unable to get it done. I have implemented the following in my ViewController class to detect and handle the shake gesture, the 3 UIScrollViews also belong to the s...

Popover's arrow to track an object in a scrollview

I show a popover whenever a cell in my tableview is touched, with the arrow pointing to the cell, and always pointing left or right, not up or down. The table view is set as the popover's passthroughView, so that the user can select a different cell while the popover is still open, resulting in a new popover for the selected cell. Howe...