uiscrollview

iphone: UIwebview curl effect

Hello, I would like to make a standard view container which will give me the curl animation effect on multiple views. Something like uiscrollview and paging, only with a different animation(curl). I will be using UIwebviews as my separate pages. The problem: I do not know how to trap swipes in UIwebviews, But I see that UIscrollview ...

iPhone UIScrollView - How to animate scrolling with steady contents?

Hi all, I'm wondering if anyone knows how to prevent the contents of a uiscrollview from moving unsteadily when scrolling manually by setting the content offset. When scrolling by touch the text remains clear and steady. I would like to recreate this by animating with the animated option set to false. I'm using a timer to scroll at a...

iphone sdk: finding the direction of scrolling in UIScrollView

I have a UIScrollView with only horizontal scrolling allowed, and I would like to know which direction (left, right) the user scrolls. What I did was to subclass the UIScrollView and override the touchesMoved method: - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { [super touchesMoved:touches withEvent:event]; ...

UIScrollView content visible then bounces away

I have a pretty simple UIScrollView defined inside Interface Builder. I've pasted in some UILabels and when I run my app, I can drag to see the UILabels at the bottom but as soon as I let go it bounces away from view. What property controls this sort of setting? ...

UIScrollview alternative

Hello, Because UIScrollView is not flexible at all (impossible to have 2 fingers scrolling and getting single touch to childview for instance) I am looking for an alternative. My need is really simple : I juste need to be able to scroll and zoom an image? What do you suggest for this ? Thanks in advance for your help. Regards, ...

UIScrollView With Large Number of Images To Show

I would like to setup a UIScrollView containing say 5 images to be scrolled. I have 100 images to be scrolled. The strategy I am using is as follows: 1. Load and setup images 1 2 3 4 5. 2. Scroll by 1 and move images in subviews such that I now have 2 3 4 5 6 in the same subview set. 3. Scroll again until end and wrap images in subviews....

How to get active subview (UIImageView) from UIScrollView

I have several UIImage subviews in one UIScrollView. I'm trying to emulate iPhones's Photos app. To enable pinch zooming, I have implemented UIScrollViewDelegate and the one thing I'm unable to figure out is this delegate function: (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView; How do I find out which UIImage subvi...

Unknown iPhone Control - Help me out

Hi can anyone let me know which control they have used for doing the scrolling. I like that control very much. http://www.youtube.com/watch?v=Ssa2k4RlYXs&feature=channel Application is free to download. Help me to figure out which control is this. Application URL: itunes.apple.com/us/app/xix-cwg/id353382539?mt=8 Help me out. Co...

UIScrollView strange zoom behavior when content is a UIView subclass

Hi, I'm experiencing the following: I created a UIView subclass with a CATiledLayer as backing layer by overriding the layerClass method. The layer properties (delegate, tileSize, etc) are set in the initWithFrame: method of the subclass. +(Class)layerClass { return [CATiledLayer class]; } -(id)initWithFrame:(CGRect)frame { i...

UITextView change height instead of scroll

By default, the UITextView's contentView becomes scrollable when there is too much text to fit into the textview based on it's height. I'd like to disable this and instead, update the height of the UITextView to fit in the text. The reason I'm doing this is because I'm adding the UITextView as a subview of a UIScrollView which should ha...

How To Detect "Touch Down" in superview of UIScrollView?

I have a UIView that contains a UIScrollView and I want to be able to capture the "Touch Down" event in the UIView any time the user taps on the UIScrollView. I've tried including all the touchesBegan/Ended/Cancelled handlers in my UIViewController but none of them get fired when tapping inside the UIScrollView contained in the main UIV...

iPhone: Scrolling a UIScrollview While Entering Text into an Embedded UITextView

I have a view composed of a UIScrollView which contains a UITextField, a UILabel and a UITextView. I want to configure the view such that when the user types text into the textview, the scrollview will scroll to keep the line being typed visible. ...

Transform/redraw view after pinch zoom on x-axis

My setup. UIScrollView (scrollView) - UIView (contentView) - UIView (subView) I have managed to do so I can zoom contentView only on the x-axis. The problem is that subView is containing a graph. When contentView is zoomed and transformed the graph gets unsharp and distorded since the scaling only effect the x-axis. What I need help...

iPhone image app not releasing memory as in instruments using imageNamed

hi, im building iPhone app that downloads images (UIImageView) from internet and adding them to UIScrollView. This scroll view could contain 20 or more UIImageViews. Iam adding UIImages to UIImageView like this: UIImageView *newView = [[UIImageView alloc] initWithImage: image]; Then I just scroll these images like in photo app. Proble...

Leaks in my UIScrollView helper class

Hi, I want to publish tutorial about how to easily create an UIScrollView on http://www.xprogress.com/ and I just want to check with you guys if the code is alright before I publish anything. Any help will be appreciated and I'll put your name / website on the bottom of the article :) Thanks a lot :) Ondrej header file: /// /// IGU...

UIScrollView notifications

Hi, I'm coding an app that works much like Apple's Weather.app: There's a UIPageControl at the bottom and a UIScrollView in the middle of the screen. In my code, I implemented the - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView method to figure out when the user did move to a new page. If they move to a new page, I load ...

UIPageControl bug: showing one bullet first and then showing everything

I have some strange behavior using a UIPageControl: First it appears showing only one bullet, then when I move the scroll view all the bullets appear correctly. Is there something I'm missing before I add it as a subview? Here is my code imageScrollView.h : @interface ImageScrollView : UIView <UIScrollViewDelegate> { NSMutableDictio...

Refreshing UIScrollView / Animation, timing (Objective-C)

I have a UIScrollView that is displaying a list of data. Right now, when the user adds one more item to the list, I can extend the content size of the UIScrollView and scroll down smoothly using setContentOffset and YES to animated. When the user removes an item from the list, I want to resize the content size of the UIScrollView, and s...

Forwarding first responder to UIScrollView unsuccessful

Hello, I am trying to create an image cropping bpx whereby the underlying image can be zoomed an scrolled while the cropping "maskview" layer stays the same and the corners can be dragged in any direction. To achieve this, the ImageView is added to a UIScrollView, and this is added to the SelectionViewController.view . I then add the ...

iPhone SDK UIScrollView doesn't get touch events after moving it

Hi! I'm subclassing UIScrollView and on the start I fill this ShowsScrollView with some items. After filling it, I setup frame and contentSize to this ShowsScrollView. Everything works fine for now, i get touches events, scrolling is working.. But after rotation to landscape, I change x and y coordinates of ShowsScrollView frame, to m...