uiscrollview

UIScrollView showing other images when its main image is smaller than window

I have a tab based app that basically has several tabs that are nothing more than scrollviews containing imageviews in them. The scrollviews can scroll, and zoom and all that fun stuff. The problem I am running into, is that if you are in one tab, and shrink or scroll around in such a way that the image for that view does not fill the ...

iPad: UITableView Within UIView Covers Elements When Scrolled

I am attempting to place scroll view within a UIView that is smaller than the entire iPad screen. I simply add the scroll view as a subview of the UIView and it appears just fine, however when I scroll it, it moves outside of the bounds of that UIView effectively covering up any UI elements that are placed above it. Is there some way to...

Custom "Swipeable" UIScrollView does not work properly on iPad - works fine on iPhone

I am working to make my iPhone app compatible for the iPad. The user can tap or swipe the screen to activate certain functions, and it works fine on my iPhone version. There is a UIScrollView on the page which I have subclassed to make it "swipeable," i.e. it passes up all of its touch functions to its superview as such: @implementatio...

iphone sdk - positioning of custom items within UIScrollView during zooming

Hello, my application has a UIScrollView with a UIView as subview. Both are the same size. The scrollView contains a large image and the subview is a "overlay" view that holds markers that are set when the user taps at the large image (a map). It is basically a simple app that allows to set markers on certain locations on a map. so far...

Scrollview and image dragging issue

I have a scrollview that has a number of custom imageviews in it. I use the custom imageviews as I need to be able to drag any one of them off the scrollview and to another location on the iPad screen, bit like a photo picker. Problem is if I want to scroll the scroll view most of the time the custom imageview gets the touch and moves ...

Touch Events in UIScroll View in iPhone

Hi friends, I have created scroll view in my view controller and set the buttons in the scroll view. I have set the scroll view between the two images. The buttons are scrolling horizontally. Now i want to enable and disable the images. For Eg: Initially left images are to be hidden, once moving the button horizontally and enable right ...

iPhone: UIScrollView not scrolling when adding item via IB

I'm trying to make a very simple scrolling page via IB. What I've got is a UIImageView at the top and 2 UIImageViews at the bottom, with a UITextView in the middle. I've disabled the scrolling in the UITextView as I won't the whole page to scroll up and down including the UIImageViews. Can anyone tell me why the UIScrollView won't scrol...

The current way to release memory from a UIScrollview with many images

Dear Scholars. I am generating a simple scrollView with some images attached to buttons. This works fine apart from the fact that this scroll view is taking rather much memory. Since this scrollView is just a sub Menu allowing the user to pick an image and soon after I do not need it, I would like to free this heavy block from memory. ...

UIScrollView touch events during animation not firing with animateWithDuration: but work fine with UIView beginAnimations:

I have a UIScrollView subclass that I am programmatically scrolling using UIView animations. I'd like the user to be able to tap or zoom into the UIImageView content of the Scroll View while the animation is taking place. This has worked fine while using a formulation akin to this: - (void) scrollSmoothlyatPixelsPerSecond:(float)thePi...

Lazy loading of subViews into a non-paging UIScrollView

I am trying to implement a filmstrip-like UIScrollView that will be populated with thumbnails of catalog pages. Selecting a thumbnail image will cause the main UIScrollView to move to the selected page. The Catalog may contain 100 - 200 pages, and I want to load them lazily only when required. I have done this in a UIScrollView with pag...

Maximum CAShapeLayer size?

I'm trying to draw a semi-transparent shape over an image. I've got a UIView which has it's layer's contents set to the image, with a CAShapeLayer sub-layer who's path is set to the shape. There are a few of these UIViews inside a parent UIView, which is the zoom child of a UIScrollView. Everything is fine on the iPhone, but when I zoo...

Pinching works great in Simulator, but doesn't work at all on device

Has anybody come across this problem? I have created an UIScrollView of images, much like the Camera Roll. Each image can be pinched to zoom in and out. Got my code working great on the simulator. I put the code on my device (both an iPhone and an iPod Touch) and nothing. The images don't pinch, nothing happens. Am I missing someth...

Prevent UISCrollView to scroll unless it was touched near edges

I have the following situation: A UIScrollView contains a UIWebView. I want the content inside the web view to be touchable, but the scroll view should not scroll unless it was touched near the left or right edge. I have subclassed both UIScrollView and UIWebView to try to override methods like hitTest and pointInside but no go so far. ...

UIScrollView with many UIImageViews - Memory problem

I have this huge problem with memory management. I have been googling for 8+ hours, with no success... The problem: I've got a UIScrollView, I've got an Array with 24 paths to Images in it and I want to show them in the UIScrollView with paging enabled. All images is in the size 1024x748 (iPad landscape resolution with status bar) and...

Objective C (iphone/ipad) - carousel coding best practice

I need to build a scroll view (with 10 items for example) that can be continuously scrolled (with paging enabled). In other words as you keep scrolling to the right, you see the item you started with once to get to the end, and it just keeps looping. I'm looking for recommendations on how to a approach this. I will be receiving an array...

iphone uiscrollview - custom paging distance

I have a long UIScrollView that I want to page through by a variable amount (I have images of different widths that I want to center on screen as the user scrolls through with paging enabled: From the UIScrollView Class Reference for pagingEnabled: the scroll view stops on multiples of the view bounds when the user scrolls. So I guess ...

iPhone : TabBar overlaps above UIScrollView

I have created an iPhone UI programmatically but I just can't figure out how to fit a view so that it doesn't get overlapped by the TabBar. Here's the ownership hierarchy: - AppDelegate UITabBarController UINavigationController x UITableViewController UIViewController (with XIB) UIScrollViewController (in the same XIB as parent) ...

UIButton touch is delayed when in UIScrollView

Hi All, I'm running into a small issue in my app. I essentially have a series of UIButtons added as subviews in a scrollview which is part of a nib. Every time I tap on a button there is a noticeable delay before the button is highlighted. I essentially have to hold it for about half a second before the button dims and appears selected...

UIScrollView Always animating!

Hi Everyone! I have a little problem with UIScrollView. Basically, I'm using the code from the PageControl sample app with some modification. I'm adding the scroll view to my navigation stack, I want it to be on a specific page when it gets there. I am trying to use the UIScrollView scrollToRect: animated: method, but even though I pass...

contentOffset of UIScrollView during rotation

I want to manually update the contentOffset of an UIScrollView during rotation changes. The scroll view fills the screen and has flexible width and flexible height. I'm currently trying to update the contentOffset in willRotateToInterfaceOrientation, like this: - (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa...