uiscrollview

Fix UIScrollView to pass events UP the chain rather than DOWN

UIView's that don't handle their events pass them up the chain. By default, this passes them to their parent View, and if not handled (ultimately) to their parent UIViewController. UIScrollView breaks this (there's lots of questions on SO, variations on the theme of "why does my app stop working once I add a UIScrollView?) UISV decides...

How do I lazy load 100+ pages in a UIScrollView with paging enabled?

I'm creating a comicbook-like application. I'm using a UIScrollView with paging enabled to display the hi-res full-screen images (the app works similar to Photos.app but with zooming disabled). The final product will have nearly 200 images that need to be paged through by the user. How do I go about setting up the UIScrollView for such a...

Why can't I tap input elements after I resize a scroll view?

I have a sample project that uses the metrics from notifications for resizing the keyboard when a text field is focused. http://www.smallsharptools.com/downloads/ObjC/KeyboardSize.zip The series of text fields are all wrapped inside of a UIScrollView and when the keyboard is shown a notification is sent with the height value. I use tha...

How to properly forward UITouch events in responder chain?

Hi there, I'm struggling with following problem. I'm having a view controller with scroll view. With this scroll view, user should be able to swipe through set of "pages" - like in apple's weather app, so nothing uncommon. Then each "page" within the scroll view is table view, showing a list of items. And here I'm getting into the probl...

Unwanted automatic scrolling with UIScrollView and UITextFields as subviews

The "too long; didn't read" version: Is there any way to disable the automatic scrolling behaviour of UIScrollView when telling a UITextField to becomeFirstResponder? I have a scroll view with paging enabled and several views as subviews, each subview being controlled by its own view controller. Each subview has a UITextField. The requ...

UIView setBounds UIScrollView hell!!

I have a bunch of 'rowviews' that I want to put in a vertical scroll view. I have created this rowView view as a separate nib in IB. They are sized at 1024/200 (ipad). Now I want to put them one by one in my parent UIScrollView. I tried a simple [vScroll addSubview:rowView] but this puts them overtop of eachother (I made the rowview tran...

How to get/detect the active UIImageview in UIScrollview?

Dear all experts, I need to use 3 UIScrollView to Display images with 3 parts, Head, Body and Leg, and before the game start, the UIImageView will be displayed randomly in UIScrollView. User have to scroll them to match it as a Person. I use three Array: headArray, bodyArray and legArray to store the image name; and Then addsubview to...

UIScrollView seems to use a lot of memory on big ContentSizes

I have created a UIScrollView (canvas.scrollview) and have a custom UIView (canvas) inside it. A normal configuration for starting up is something like this: CGRect cs2 = CGRectMake(0, 0, 4000, 4000); CGPoint screen = {[UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height}; self.canvas.frame = cs2; //canv...

UIButton inside UIScrollView, inside UIScrollview

Hello, Controller A's view contains a UIScrollview which contains a UIButton. The content scrolls vertically and the button works fine. Controller B's view contains a UIScrollview for paging left and right. When I place my Controller A view inside the scroll view of Controller B's the UIButton stops working. I can't 'de-nest' the scr...

iPhone, How to enable horizontal scrolling.

Hello. I am new to Xcode and iPhone SDK. I want to make a paging enabled horizontal scrolling. But I can't do that, only vertical scrolling. ...

UITableViewController contentOffset returns nil

I am trying to get the scroll position of my UITableView, however when I implement any of the UIScrollViewDelegate methods, contentOffset always returns nil for me. For example: - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { NSLog(@"offset: %@", [scrollView contentOffset]); } The log returns as offset: (null) w...

iOS4: Can't Programmatically Scroll to Bottom of UITextView

Before I was using this method.... //TextView is a UITextView [TextView scrollRangeToVisible:NSMakeRange([TextView length], 0)]; ...which would programmatically scroll to the end of the UITextView but it doesn't seem to be working in iOS 4.0. Is there a way to programmatically scroll to the end of a UITextView without changing edit...

Implement UIScrollView which holds an image

I would like to Implement a UIScrollView which should hold an image which is the same width as the screen, but a lot larger in height. DO I add a UIImageView to the scrollView or how is this done? Thanks in advance. ...

UIScrollView UITextView and camera causing disappearing GUI bug

I have an intermittent bug that is confounding me. Any advice on how to track it down or what might be the cause are greatly appreciated. I have a "DetailView" with a few labels, an Image View and a Text View. In the navbar I also have a camera button to open an Image Picker and take a picture (later added to the image view). Basic stuf...

IPhone App: UIScrollView scrolls to bottom when it loads

I have a detail view for a contact. The last field is a Textview that can be as short as 1 line and as long as 20. in the viewDidLoad method I use: scrollView.contentSize = self.view.frame.size; My problem is that when the data is displayed, the scroll view scrolls to the bottom on its own. Obviously I would like it to start at the to...

Changing subview frames within UIScrollView on rotate

I have rows of subviews within a UIScrollView that I want to rearrange after rotating to landscape mode. Ideally, I want to have 5 buttons per row with the total number of rows determined by the button height and how many buttons there are total (plus some padding). The problem I am having is how to iterate through subviews while als...

How can I modify an existing UIViewController to allow scrolling?

I have already built a UIViewController subclass with a bunch of controls in it, and just realized that if I rotate the iPhone, half of the controls become invisible. So, I would like to somehow make the UIViewController's UIView scrollable so that when the device (or the Simulator) rotates, the user can scroll the view to see all the co...

Cache UIView on drive?!

Hi, does anyone know if it's possible to cache the entire UIView on a drive not in memory so you don't have to regenerate the entire content everytime you want to access it ... Right now I am preloading three pages on both sides in scroll view but it would be nice to pregenerate the entire edition in background and store it in documents ...

Improve performance in scrollview.

Hello. I am new to programming. I have a paging enabled scroll view with many pages (up to ten) and on every page I have a custom button. Every custom button has a custom image. Everything I have made in Interface Builder. When I load the view controller containing this scroll view, it takes a lot of time to load it because it loads all ...

Is it HIG compliant to have a modalView below an UITabBar

Hello everyone, I'm working on this App and I had to do a bit deep view hierarchy to acchieve a correct flipView effect with an scrollView like this but I ended up with modalViews appearing bellow the tabBar like you can see on the picture. Is it HIG compliant? I read the Apple document and doesn't say anything about this particular effe...