There seem to be many questions asked about this subject here on stackoverflow, but none of them touch on the updates made in 3.0. After mucking around for hours on end I finally found out, that nested scroll views (in my case web views inside a scroll view) are fully supported, however the example given at http://developer.apple.com/iph...
My scrollView has a drag/zoom -able containerView. The containerView is parent to a UIView subclass of my own design that can respond to tap and drag. My problem: scroll/zoom of the containerView is now total crap, with scroll/zoom sometimes just ignoring swipe attempts entirely. It feels as if touches are now confused as to who is runni...
Hi,
In my app, I have a ScrollView that shows a map(just a jpeg).
On top of the ScrollView, I added some pins(UIImageView)
So far so good.
But when I zoom in, the pins also get larger.
I would like the pins to stay at a fixed size, just like the pins on the google map application on the iPhone.
How do I solve this?
Thanks!
...
Hey SO,
So basically I'm trying to make UIScrollView only scroll on higher angles. As in right now if you move your finger 10 degrees off horizontal, the scrollview will scroll. I'd like to push that up to, say, 30 degrees.
After doing some reading, I established the best way to do this would be to put a subclassed UIView on top of t...
Can anyone notice an error in this coding???
NSString *textFilePath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"txt"];
NSString *fileContents = [NSString stringWithContentsOfFile:textFilePath encoding:NSUTF8StringEncoding error:NULL];
practiceContent = [fileContents componentsSeparatedByString:@" "];
myScrollView = [[UIS...
Hi everyone,
I'm developing on the iPhone and I have seen in the AppStore that the images are progressively downloaded in the UITableView... How can I implement that?
My idea was to detect the showed content (which cells are shown) and download these images. My problem is that I don't know how to detect the showed cells!
Is it the good w...
If I have a UIScrollView and move it around to a specific location, is there any way to get that position it has moved too?
Thanks
- James
...
I'm trying to make UIScrollView auto-resize and appear correctly in Landscape mode. Portrait mode works fine.
Here's my code:
- (void)viewDidLoad {
[super viewDidLoad];
//=== load all the custom view
NSMutableArray *controllers = [[NSMutableArray alloc] init];
int page = 0;
[controllers addObject:[self loadScrollView:[[Page1ViewContr...
Is there a way to get a notification, a callback or some other means to call a method whenever a UIView becomes visible for the user, i.e. when a UIScrollview is the superview of some UIViews, and the ViewController of such a UIView shall get notified when its view is now visible to the user?
I am aware of the possible, but not so elega...
I have created a UIScrollView in a cocos2d application. I am adding sprites dynamically, over 3 pages. On the first page, touch works perfectly on a sprite, however if I use the scroll view and navigate to the second page, touch does not work quite right... the sprite will respond to the touch when I touch the screen, approximately the a...
I'm building a comic viewer app, that consists of two view controllers, the root viewcontroller basically displays a view where a user decides what comic they want to read by pressing a button. The second viewController actually displays the comic as a uiscrollview with a toolbar and a title at the top.
So the problem I am having is th...
In my application I have large area (≈5000x5000pts) and I must allow user to see (+zoom, scroll) only its certain rectangular subregion with sides not necessarily parallel to area sides.
What is the best way to accomplish that?
What I am doing now:
Have a large UIView containing whole area (so its frame is 5000x5000) as a UIScrol...
Hi all!
I have a UIScrollView in my project. I have a view controller I would like to add as a child of the UIScrollview. Would I just do that like this:
[scrollView addSubview:theViewController.view];
or is there a better way?
(theView is a view, not the TV show)
Furthermore, I would like to be able to use a UIButton in scrollView'...
Hi, I'm working on a project and need to create a screen similar to the iPhone home screen:
A scrollview with multiple pages
A bunch of icons
When not in edit mode, swipe through different pages (even I started the touch on an icon)
When not in edit mode, tap an icon to do something
When in edit mode, drag the icon to swap places, and ...
I have UIScrollView with number of subviews. Each subview is custom UIButton with UIImage. When I load more and more subviews, more and more memory is used. But I remove invisible subviews by removeFromSuperView method. Subviews are removed and stay invisible, but Im afraid that no memory is released. UIImage is image downloaded from int...
I'd like to be able to create my own container subclasses of UIView which can react first to touches, before their subviews. This is tricky because normally a subview receives touch events (via touchesBegan: etc) before superviews. How does UIScrollView reverse this?
To be clear, I am not asking how UIScrollView behaves. I understand...
Hi,
I need and Activity indicator spinning in a modal Modal view that has an UIScrollView while
the content of the ScrollView(image from url) is loading.
Any ideas of how to get this done?
As a plus I need to know how to tell the ScrollView to behaves like the Photos Iphone Native App, I mean, load an image, adjust it to fit the scree...
So I have a bunch of UIViews that I made programmatically and placed a bunch of content on (UIButtons, UILabels, UINavigationBars, etc.), and most of these views are going to need to actually be UIScrollViews instead.
Now keep in mind I made all these through code not the Interface Builder. What I first tried was to just change each dec...
This is what I'm trying to do, and I'm not sure if it's possible using UIScrollView. First, I don't care about zooming, all I care is that the user is able to scroll through images just like the Photo App, this I got. But how do I know which image he is viewing while using UIScrollView? For instance, if he stops on the 3rd image out of 1...
Hi all,
Does anyone else notice that the contentOffset of UIScrollView doesnt update during a flick gesture?
It only updates after the flick gesture has totally completed, when the flick gesture is finished.
After the finger has left the screen, the scrollview keeps moving, in the decelerating phase. but this isnt reflected in the co...