uiscrollview

Nested UIScrollViews in [REDACTED] - Controlling Which View Gets the Touch

I have a paged horizontal scroll view which houses uiwebviews. Scrolling side to side triggers the container uiscrollview scroll. Scrolling perfectly up and down triggers the uiwebviews scroll. Anything less than a perfect up-down swipe cause the horizontal scroll to trigger. This is all out-of-the-box [REDACTED] code. What I desire...

How to detect when a UIScrollView has finished scrolling

UIScrollViewDelegate has got two delegate methods scrollViewDidScroll: and scrollViewDidEndScrollingAnimation: but neither of these tell you when scrolling has completed. scrollViewDidScroll only notifies you that the scroll view did scroll not that it has finished scrolling. The other method scrollViewDidEndScrollingAnimation only seem...

Is there any way that I can add UIScrollView in another scroll view?

** I had added UIScrollView in another scroll view but its not working. I have also added UITextView in UIScrollView and vice-versa but its not working. If anybody has tried or can give some idea then pls... Thank you in advance. With Regards Gunjan Shah - iphone developer ** ...

UIScrollView starting point

I have a iPhone app with a main view that is 480 x 510. I'm a bit confused as to how the coordinate system changes when I go from portrait to landscapeRight. Initially, I had a 480x480 content area, and wanted to add a button on the side to bring up a menu. However, the only way I could find to have the writing run down the length of...

Nested UISCrollViews - Preventing Parent Scrollview from scrolling when zoomed on child

I have a UIScrollView with nested UIImageViews. Each imageview can zoom, but when I try to scroll the inner scrollview while zoomed on the image, the outer scrollview picks it up and switches imageviews. How can I prevent this from happening so that the outer scrollview only scrolls when the inner is not zoomed? ...

How to scroll to tableview row?

I have a UIViewController (named VC) that inherits from UITableViewDelegate and UIScrollViewDelegate. The previous UIViewController loads VC like this: [self.view addSubview:VC.view]; which means viewWillAppear doesn't fire. I can add that method just after the above line: [VC viewWillAppear]; but then it will fire before cellForR...

[iPhone] Is there a way to achieve parallel scrolling of two tableview?

Let's say, i have two tableview inside a scrollview. After i scrolled up & down tableview1, and then touch and swipe to scroll the scrollview horizontally to tableview2, i want tableview2 to have the same vertical (up & down) position as tableview1. is there any way to achieve that? thanks ...

iphone UIScrollView reverse order positioning

Dear All, I'm building an app based upon the "Scrolling" sample code that Apple provided. All is working very well. The nature of the images that I want to display, would make it desirable, if the order of the images is reversed, and that the first visible image is the right-most, rather than the left most. Basically, the user should scr...

iPhone OS3 changes to UIScrollView subclasses

I have a subclass of UIScrollView that overrides touchesBegan:withEvent: touchesMoved:withEvent: touchesEnded:withEvent: Overriding these three seems to be a technique that is widely used (based on my observations in forums). However, as soon as I compiled this code on OS3, these methods are no longer being called. Has anyone else se...

iPhone SDK: How can I add a scroll view to my application?

I am creating an application for the iPhone which involves having buttons which animate a image view, I created another view in which the buttons are held, however I would like to be able to horizontally or vertically, scroll this view of buttons. I have looked into adding scroll views and I have even followed a tutorial, But I just can...

UIScrollView ImageView with pins on top

To all, I have a UIScrollView which has a UIImageView. I want to show pins on this imageView. When I add pins as subviews of the ImageView everything is great except for when you zoom the scale transform happens on the pins also. I don't want this behavior and want my pins to stay the same. So I choose to add the Pins to another vie...

iPhone Drawing in tiles - Keeping track of original position of image on them

Hello guys. I'm trying to draw images on tiles based on a point that is fine only for the whole width and height of this other image. I'm using the Tiling example from ScrollViewSuite. I can't seem to figure out how to translate this point to the tiles coordinates when zooming in and zooming out. What I wanted is to keep the position of ...

iPhone - strange issue with UIScrollView and touches

Hi I have two UIImageView objects inside my view (both 320x480 one above the other). The lower image view is inside a UIScrollView with scrolling and zooming enabled. Now I want to handle touches inside the other image view but it no longer detects any single taps. I can understand that the UIScrollView handles all the touches which I ...

how to disable vertical scrolling of scrollview iphone?

i have a view like iphone's springboard . i created it using a scroll view and buttons.i want to disable horizontal scrooling on that view.i want only vertical scrolling.how do i do this? ...

How to disable UITextField auto-center? (IPhone SDK 3.0)

I have a UITextField inside a ScrollView that is supposed to be animated into a visible area above the popping keyboard when entering the textfield. So I used the delegates textFieldShouldBeginEditing-method to call the scrollviews setContentOffset. now in the 2.2.1 Simulator this worked just fine, but in the 3.0 Simulator the scrollvi...

iPhone Auto-scroll UITextView but allow manual scrolling also

I have a UITextView that has a lot of content. I have a button that allows the UITextView to automatically scroll + 10 pixels in an NSTimer loop: scrollPoint = CGPointMake(scrollPoint.x, scrollPoint.y + 10); [textView setContentOffset:scrollPoint animated:YES]; This works really well, as the animation makes the scroll rather smooth. ...

How to add a UITextView and UIActionSheet to UIScrollView/UIPageControl?

I am new to iPhone programming. I am trying to modify the PageControl example program to add a UITextView and UIActionSheet so I can display text on the scroll view of the page. This is how the "PageScrollView.h" looks like: @interface PageScrollView : UIView `` { UIScrollView *scrollView; UIPageControl *pageControl; U...

Optimized Image Loading in a UIScrollView

I have a UIScrollView that has a set of images loaded side-by-side inside it. You can see an example of my app here: http://www.42restaurants.com. My problem comes in with memory usage. I want to lazy load the images as they are about to appear on the screen and unload images that aren't on screen. As you can see in the code I work out a...

Deactivate UIScrollView decelerating

Is there a way to deactivate the decelerating of a UIScrollView? I want to allow the user to scroll the canvas, but I don't want that the canvas continues scrolling after the user lifted the finger. ...

How do I manually call a UIView's touch event on the iPhone?

How do I manually touch a UIView means programattically. I want to touch a view inside a UIScrollView touch manually. Any idea how to do this? Or how do I manually call UIScrollView's scrollViewWillBeginDecelerating? ...