uiscrollview

Several UIImageViews in UIScrollView and crashes

I have a problem with a photo viewing application I've written. I have a UITabBarController with a UINavigationController inside. The UINavigationController initially displays a UITableView. On selection it pushes another UIViewController (Individual photo album) along with an NSArray of photos. This Controller contains a UIScrollVie...

How to populate a UIScrollView with UIImageView's lines up in a row

I need some code on how to make a UIScrollView that contains UIImageViews lined up like the iPhone photo's app that comes with the phone. ...

Switch between scrolling views with swipe?

What would be the best way to set up a group of views where each view acts as a scrolling view (can be scrolled up and down). And you can switch between these views with a swipe to the left or right? ...

What's the best lightweight option for scrolling styled text for the iPhone?

As far as I can see (correct me if I'm wrong), there seems to be no obvious way to have a scrolling page of styled text (diff fonts, weight, sizes, colors etc of text) on the iPhone without resorting to a UIWebView, which seems to take quite a bit of memory and resources (and the scrolling isn't as smooth as a UITableView). Is there a g...

Can you change the sensitivity of UIScrollView scrolling?

Using the Apple's PageControl sample code I've managed to put several UIWebViews side-by-side, and I'm able to swipe left and right in order to get to each web view. I can also scroll up/down to scroll within each web view. However, I have to move my finger very precisely along the y-axis to get the webview to scroll up/down - otherwise...

scrollview unable to adjust added fields

Hello, I am a newbie to iphone development. I have one scrollview in which there is a button and several textfields. This button when pressed add a new text field is added below existing text fields. This works fine but after adding two textfields other added textfiels start hidding. I am increasing content size of scrollview everytim...

UIScrollView in landscape mode with Aspect Fill

In a UIScrollView I have a UIImageView with the contentMode set to Aspect Fill. When I rotate the simulator to landscape mode the UIImageView shows the center of the image and I cannot scroll upwards to see the whole picture. How do I fix this so that when I rotate the iPhone I instead see the top of the image (but still scaled with As...

UIScrollView not scrolling

I'm loading a UIScrollView with UIImageViews. imageViews below is an NSMutableDictionary of UIImageViews. The scrollview is an IBOutlet with scrolling and paging enabled. The loop adds two images. However, I only ever see the first image in the scrollview and am not able to scroll. Is there something else I need to enable for scroll...

Setting a new contentSize to a UIScrollView causes it to scroll back to point x:0 y:0

In my app I have some logic that changes the UIScrollView's contentSize dynamically. The problem I'm running into is that when I change the contentSize it sets the contentOffset to CGPointZero or something like that. I guess you can't set contentSize to be in the middle of the UIScrollView. Any ideas on how to get this to work? In othe...

What's the UIScrollView contentInset property for?

Can someone explain to me what the contentInset property in a UIScrollView instance is used for? And maybe provide an example? thanks, fbr ...

Weird Touch Point value returned when used with scroll view controller

My application attaches a list of UIView controllers to a scrollview controller. As a part of requirements, it is needed to make some of the elements in the individual view controllers clickable. But, if I use a touch point, I get weird cooridinate values like (0,12567234). Is there a way to obtain the actual touch point value? My code l...

UIScrollView and UIButton, UIButtons Disappearing

I have an UIScrollView where I create two buttons. The first button works as it should, however the second button disappears. It is still there and can accept clicks, and becomes visible when you click on the hidden button. Any idead on why the second button dis appears? cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellSty...

Loading UIImageViews into a UIScrollView and peformance

I have a UIView with three UIScrollViews. I load each with custom UIImageViews that already have their images assigned. The custom UIImageViews are simple and only introduce a few new properties that allow for tracking the imageviews within the scrollviews. Images load from disk very fast. The code below executes very fast but I have...

Zoom UILabel & Re-render font at correct size

I have a multi-line UILabel that I want to enable zooming on. I embedded it with a UIScrollView and set min zoom to .25 and max zoom to 4. This works well, however my UILabel's font looks rather gross at any zoom level other than 1. I can handle this method: - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView ...

How do I put viewController's into a UIScrollView

I want to initialize 5 viewController's that I want to be able to flick between in a UIScrollView, when my app loads. ...

How to save state of UIScrollView?

This has me stumped. I'm trying to figure out how to save the state of a UIScrollView. For example, I have several images in a UIScrollView that are loaded like so: NSUInteger i; for (i = 1; i <= kNumImages; i++) { NSString *imageName = [NSString stringWithFormat:@"image%d.jpg", i]; UIImage *image = [UIImage imageNamed:image...

remove button form scrolview

hi friends... i added one UIScrollView in my project... and i added 10 more button "fieldButton" once, then the same UIScrollView i want add ather 5 button. it i try to do this first added 10 button also coming in the scrollview .. how to remove first added 10 button befor adding other item. in the same scrollview... if(a == 1){ fo...

Large scrollview table with buttons

We are trying to write a training manual application for the iPhone. On the top half of the screen is a diagram of a car engine, on the bottom half is some text. At the user repeatedly hits a "next" button, we highlight different parts of the engine, and in concert we highlight different parts of the descriptive text below. We basically...

Change UIScrollView scroll speed

In my app I have a view that extends UIScrollView and populates its content as the user scrolls. However, if the user scrolls too fast the views being populated inside the UIScrollView don't get created on time and you can actually see the UIScrollView's background. The reason why this happens is because I'm doing this lazy loading in th...

UIScrollView not showing scroll indicator

I have a UIScrollView which I create and size dynamically using... scrollView.contentSize = CGSizeMake(scrollView.frame.size.width , length); I then add subviews to the UIScrollView. I do have scrollView.showsVerticalScrollIndicator = YES; When scrolling the scroll indicator never appears. Even if I call [scrollView flashScrollIndic...