uiscrollview

UIButton location while zooming a UIScrollView

Hello: I have a "world view," so to speak, that consists of a large, zoomable area on a UIScrollView. I want several buttons to retain their world location when I pinch to zoom, much like pins in Google Maps do. The code I have been trying (I have been coding for hours, but I think it sounds right...although I may be just burned out) ...

iPhone/iPad UIScrollView subview orientation and setAutoresizeMask problem

Hi, I have a UIViewController that is being pushed via a UINavigationViewController. The viewController's view has a UIScrollView as a subview. I'm initializing the UIScrollView with the same bounds as the viewController's view bounds and set the auto resize mask to flexible height/width so it will still occupy all the screen. This work...

Managing a large number of expensive UIViews in an UIScrollview

The iPad app I am designing is going to show a full screen UIScrollView allowing the user to flick through a large number (200 or more) of images - all the same size, no paging. The images are to be loaded from the web and don't have a predefined ordering. Right now what I do is I load and parse an XML feed which contains references to ...

UIScrollview paging back

hello everyone i my iphone app i have scrollview with pages and i know what page on screen now with that: if(currentPoint.x == screenWidth){ currentPage += 1; screenWidth += 768; [self loadScrollViewWithPage:currentPage]; , but i need also know, what page on screen when user scrolling back. How it's possible? Thanks. ...

UIScrollView clickable images iPhone

Hi, I have created a UIScrollView in my app - adapted from this sample code: http://developer.apple.com/iphone/library/samplecode/Scrolling/Introduction/Intro.html But I have no idea how to make the images clickable Any suggestions please? Thanks! ...

Nested UIScrollView like photo apps having issues when changing orientation

Hi, I have implement a nested UIScrollView based on apple developer website sample. It works fine until I turned on the orientation change. When it rotates, there will be some white color coming out during the rotation animation. And it will go away once the loading is completed. I have tried to set the backgroundcolor to black for bot...

UITableView: scrolling programmatically the content view

Hi i'm trying to forward the touches I receive from an UIView which is in front of an UITableView. But doins so I can't make the table scroll anymore (see here). So now I'm trying to make tha tableview scroll programmatically and I am looking at setContentOffset:animated: and scrollRectToVisible:animated: with having success only with t...

Modal view can be dismissed by swipe

I have encountered a strange behaviour when presenting my modal view. I have a scroll view on as my main view with 4 pages... tapping on a button on the scroll view presents the modal view, but i can dismiss the modal view by swiping left or right. Obviously i just want to be able to dismiss using the Done button. This is the method i u...

How to set up UIScrollView in Interface Builder with UI elements outside the main iPhone view?

I am building a data entry form in my iPhone app, and there are more data fields than will fit on the screen. I figured I should put them into a UIScrollView so that the user can scroll through the form. What's the best way to build this in Interface Builder? I know that I can do it programmatically, but I'd like to do it in Interface Bu...

How do I add UIControls to a UIScrollView contentView?

I want to add UIControls to a UIScrollView, eg. UIControl *couponView = [[UIControl alloc] initWithFrame:CGRectMake(drawX,drawY,couponWidth,couponHeight)]; couponView.backgroundColor = [UIColor redColor]; [[scrollView contentView] addSubview:couponView]; //may not respond [scrollview.contentView addSubview:couponView]; //not a ...

UIScrollView redrawing content while scrolling?

I know there is a property or method that makes the scrollview/uiview call drawRect: method while is scrolling. By default is disabled because of performance reasons but I need to enable it. I cannot remember the name of the method hence I cannot look for it, anyone who knows what I am looking for? Thanks in advance ...

UIScrollView cannot pan after zooming

Hi guys, I've seem to implement all the right code here. Is there something I'm missing in my code? // // ScrollyiPadViewController.m // ScrollyiPad // // Created by Sidwyn Koh on 5/19/10. // Copyright __MyCompanyName__ 2010. All rights reserved. // #import "ScrollyiPadViewController.h" @implementation ScrollyiPadViewController ...

iPhone - Catch horizontal swipes -before- subview

I have a view, that is able to go back to the previous view. Let's say this is a questionnaire. So my main view is the questionnaireView(Controller), and it has a subview which shows a question with 2 possible answers. When one answers the question, one presses next, and the questionnaireView(Controller) shows the next question in that ...

What's the simplest way to make all my controls in my root UIView scroll?

Hello. I have a ViewController that manages a view full of controls, including UITextViews, UIButtons, and a drawing view. It's far more than I can fit on the screen, but I'd like my design to have it all in one place and make the root view scrollable. I've become very spoiled with Interface Builder automating much of the coding work ...

How do I compose a subview of the root view in Interface Builder?

Hello. I'm trying to create a view that's full of controls (buttons, text views, labels, etc.) that can scroll, since I don't have enough screen space for all the controls. I understand that I need the root view in my application to be a UIScrollView and I need to attach to that a UIView with all my controls in it. The problem is, aft...

UIAccelerometer and UIScrollView

Hi, I want to scroll a scrollview based on the UIAccelerometer values. What is the best way to accomplish this? Initially I set the content offset to a value based on the accelerometer values I get. Then on each scrollViewDidEndAnimating, I again set the content offset based on the acceleromter values. I understand that setContentOffse...

Adding an image larger than the iphone view to a UIScrollView

How is an image that is larger than the iphone view size to a UIScrollView? I tried to add the image to the UIImageView, still not connected to the UIScrollView and the image just shrunk to fit the UIImageView. How is this structure set up? Thanks ...

App crashes when tab bar item is selected.

I have a tab bar item with a UIScrollView and all the code works. I link the UIScrollView IBOutlet in IB to a UIScrollView I placed in my View. When I run the app and select the tab bar item I get the following error. Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this cla...

UIScrollView - scrollRectToVisible - showing a button at the center of the screen?

Hi Forum I have a uiscrollview with tons of buttons in it. What I need to do is show one of these buttons at the center of the screen. When I use scrollRectToVisible (passing the button-frame), the scrollview indeed shows the button - but sometimes at the top-left corner, sometimes at the bottom right corner - apparently depending on w...

Can a UIScrollView be adapted to zoom horizontally but not vertically? (how)

I'm trying to make a timeline view that shows events as UIButtons that can be pressed for more info. Ideally I want to lay out the buttons on a UIScrollView, and allow them to stretch/shrink horizontally, but not vertically. What I'm trying to accomplish would basically be equivalent to using pinch gestures to resize the content view, ...