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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
...
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...
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...
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.
...
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...
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...
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...
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...
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 ...
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 ...
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...