uiscrollview

UIScrollView scrolling not proper

Hello, I have a UIViewController subclass which has the view property set to a UIScrollView subclass (say ProfileScrollView). Now, I have overridden drawRect: method, in which I draw a lot of text and place UIButtons as subview in between texts. Depending on the text data, I set contentSize of the scrollView in this drawRect: method. Now...

UIScrollView not getting new size on orientation change.

I have a very simple UIScrollView example that simply doesn't do what it's suposed to. Not sure if it's a bug with the API or a bug in my code. Basically, I've got a UIViewController with a UIScrollView as it's view. When I add it to the UIWindow and change the orientation of the iPad I log out the UIScrollViews size, which is incorrect...

How to check UIButton position in a ScrollView?

Hi guys, I have a UIButton in a ScrollView. This button is hided by the NavigationBar, so it is visible only when the user drag down the ScrollView. I want to check the position of the UIButton, and if the y position is <= 41 then i want to display an Alert How can I make this? Thanks!! Bye ...

Elements/Wired Style 3D Animation

I am trying to implement the style of 3D rotational animation you see in the Elements and the Wired iPad applications. The animation has the UIScrollView style acceleration so it looks like they have connected a UIScrollView to a sequence of images. I have tried implementing it in UIKit, using an "empty" UIScrollView to increment throug...

iPhone - Nesting UIScrollViews for horizontal paging and vertical scrolling

I'm developing my first iPhone app and I would greatly appreciate you guy's input on a problem I'm having. I'm looking to implement scrolling both horizontally and vertically. I want the horizontal scrolling to be paged, without the vertical one being paged (scrolling "normally"). A single UIScrollView with pagingEnabled set to YES wil...

iPhone: How to remove all objects from a UIScrollView

Basically I want to remove all objects from a UIScrollView and I haven't yet found a solution to it because a simple "removeAllObjects" command doesn't work. Does anyone have an idea how to do it? ...

Determine client area for tab bar controller

One of my tab bar's items is UIViewController representing UIScrollView. Once the scroll view is created I need to setContentSize, but I don't know how to calculate size from its controller, considering tab bar area. I would consider to avoid hard coding. ...

Find the center point of a UIScrollView while zooming

I'm having difficulties getting a tiled UIScrollView to zoom in and out correctly with pinch zooming. The issue is that when a pinch-zoom occurs, the resulting view is usually not centered in the same region. Details: The app starts with a tiled image that is 500x500. If a user zooms in, it will snap to 1000x1000 and the tiles will redr...

Problem with UIScrollView and UITabBar / UINavigationController

Hi, I created a new ViewController with xib-file and implemented a working (which means that I set the contentSize) ScrollView with an ImageView. But when I then use a TabBar or NavigationController to structure my app, the scrolling won't work anymore.I'm searching for the error since last week but I can't find it. Can anybody help me,...

Changes to UIScrollView contentOffset don't stick when decelerating

I have looked at http://stackoverflow.com/questions/1493950/uiscrollview-any-thoughts-on-implementing-infinite-scroll-zoom, but it didn't exactly address my issue. I'm puzzled, though, because I would guess that other folks haven't seen my problem, so maybe it has to do with the details of my code. The sample code provided by Allisone ...

iphone dev - UIScrollView massive content tricks/tips

I have a horizontally scrolling UIScrollView and I want to display potentially thousands of UIImage's side by side. Obviously I can't do that for memory reasons so what I am thinking is set the content size to be the 2000 or whatever but only show the current window of image squares. So the user would flick the scroll bar and when it sto...

Overriding -handlePan: in UIScrollView

Is it ok to override -handlePan: in a UIScrollView subclass? i.e. my app won't get rejected from the app store? Thanks for sharing your views. Edit: what about calling -handlePan: in another method of my subclass? ...

iPhone Horizontal Scrolling

I am trying to create an app with horizontal scrolling, so that one would be able to scroll horizontally through a series of images. I watched the WWDC Session 104 video on this, and while they made an interesting app, they flew through the basics of it very quickly. I understand using the UIScrollView, and that I have to enable pagi...

Looping UIScrollView with user interaction

Hi all, I have a looping scrollView but I want the user to be able to speed up the scrolling by interacting with the scrollView (ie scrolling with their finger) if they choose. Do I have to do extra work to acheive this as at the moment the animated scrolling takes priority over the users interaction and slows the scroll down dramatical...

UIScrollView not key value coding compliant for key view

Hi So following this SO question Here, i created two new sets of files: JCScrollViewController.m JCScrollViewController.xib JCKeyboard.xib In JCScrollViewController.xib i have just a scroll view, with the scrollView outlet of the .m file connected to it, the view outlet is connected to the View. The JCScrollViewController.m confor...

UIScrollView doesn't scroll even though contentSize set

Hi So, i have a view controller which contains just a scroll view. In viewDidLoad, i add a view to it from a nib, but when i do that, the scrolling stops working. The view i added works though, i.e. i can click buttons, but half of it is off screen. @implementation JCEKScrollViewController_iPhone @synthesize scrollView; - (void)viewDid...

Can a UIViewController conform to a UIScrollViewDelegate and then lead to the next view where there are pages to be scrolled ?

Hello all, I am trying to develop a program wherein which the first screen contains a button and after the click of the button, it should take me to a scroll view and a page control. I have successfully developed these two modules separately. But I am facing problems in integrating them. The first module lets me click and takes me to my...

mapping a uiscrollview contentview position to its frame?

I have a UIScrollView where the content size is larger than the frame. I am displaying a UIPopoverController and want to use the frame of a UIImageView for the call to set where the popover will be placed: [popoverController presentPopoverFromRect: imageView.frame inView: self.view permittedArrowDirections:UIPopoverArrowDirectionAny ani...

addSubview does not show view on iOS 3.1.3

I have a scroll view which has one UIView inside which contains the content. I am adding a UIImageView as a sub of the UIScrollView (so it should be on top of the content container) and this works on iPhone 3.2+, but on an iPhone running 3.1.3 the image does not show up above the container. My code is something like this: // add the...

Cannot create a view with a UIScrollView. Please Help.

Hello All, I am looking for some help for a program I am developing. Basically, it contains two views. The first view has a button and a action related to it leads me to my next view where there is a scroll view for three pages ( as in the PageControl sample given by apple.) I am using navigation controller to push the view from the fir...