uiscrollview

zoomToRect does nothing if your UIScrollView is already at that zoomlevel

帅比萌擦擦* 提交于 2019-12-10 16:49:38
问题 I think I have found a bug in UIScrollView, but I want to check if other people are observing the same thing and if it is expected behaviour. I've got a UIScrollView and am trying to set what it is looking at using zoomToRect. That works fine. If I then drag the view so it's looking elsewhere and then trigger the zoomToRect with the same values it does nothing. The zoomToRect command only does something if the zoomScale needs to be adjusted, if a pan is all that is needed the view just sits

iOS: UIScrollView zooming programmatically not working

て烟熏妆下的殇ゞ 提交于 2019-12-10 16:46:29
问题 I have a pageable UIScrollView which contains different kind of informations like UITables but also zoomable images. Therefore I set up a pageable main-ScrollView and as subviews I added zoomable image-ScrollViews with the images as content. Works everything fine, just I fail to set the smaller current zoom scale of the imageScrollViews. UIImageView *imageView = [[UIImageView alloc] initWithImage:Image]; //storing a link to the imageView [imagelinkArray addObject:imageView]; CGRect

Apple ZoomingPDFViewer won't allow dragging until after first zoom

六眼飞鱼酱① 提交于 2019-12-10 16:39:58
问题 I'm using this sample code to view a PDF in my iPhone app: http://developer.apple.com/library/ios/#samplecode/ZoomingPDFViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010281-Intro-DontLinkElementID_2 However, the problem is I can't seem to get it to be drag initially. I can pinch and zoom initially, and after I've zoomed once, then I can drag the view around just fine. I just can't drag when the view first loads. Any ideas? 回答1: I think I've figured out a solution, though why this

UIScrollView w/ Large CATiledLayer + Overlay that renders fast

浪尽此生 提交于 2019-12-10 16:15:15
问题 I've been working on something for weeks now (iOS) and I can't seem to figure out an acceptable solution. Requirements Display a 10000x10000 pixel background image Zooming and scrolling responsive Overlay on top that has custom drawing Elements in overlay are interactive (tapping and highlighting elements, etc) and pieces can be turned on or off. iOS 4.0 Think of it as a geographic map of a fictional town, with a crazy system of roads, lines, areas and buildings drawn on top. A mixture of

Nested Scroll. Auto scroll one after another has reached its end point

耗尽温柔 提交于 2019-12-10 15:16:50
问题 I have a nested scroll view situation such as follow- mainView->ScrollView1->ScrollView3(has many child ScrollView vertical) *I want that when that when the user scrolls down then,first the scrollView1 will scroll dragging the displayed childScrollView3 along with it.(scrollView2's user interaction as well as scroll should be disabled)* 2)*And after it has reached its end the childScrollView3 will scroll with the same velocity that scrollView1 was scrolling ?* Same should happen when user

Passing scroll gesture to UIScrollView from another view

╄→гoц情女王★ 提交于 2019-12-10 14:22:44
问题 I do have a view that has a UIScrollView and over it there is a view that display some text. When the user swipes over this view that contains text the UIScrollView won't scroll. How to make this view transparent in a way it relays the swipe gesture to UIScrollView. Thanks 回答1: You can just set myTextView.userInteractionEnabled = NO; Or, if you're creating your view with Interface Builder, there's a check box there called 'User interaction enabled', just uncheck that. 回答2: Check out the

How can I add a scroll view to my iOS application?

走远了吗. 提交于 2019-12-10 13:45:01
问题 I am creating an application for the iPhone which involves having buttons which animate a image view, I created another view in which the buttons are held, however I would like to be able to horizontally or vertically, scroll this view of buttons. I have looked into adding scroll views and I have even followed a tutorial, But I just can't figure out how to add it to my app. Any Ideas anyone? In the tutorial I followed the guy adds the scroll view to the MainWindow.xib, now my app is created

drawViewHierarchyInRect:afterScreenUpdates and renderInContext: don't work… Other solution?

一个人想着一个人 提交于 2019-12-10 13:44:23
问题 I need to capture a part of a big UIView which is inside a UIScrollView. I was using the CALayer's method renderInContext: since more than 2 years. Even if the method failed to render special objects (like MapView) 99% of the time it was perfect and fast enough for my needs. But with iOS7 the rendering of many components is totally buggy (and became worst with the last versions of iOS 7.1). So I wanted to use the new methods that seems to be more dedicated to that like the UIView's

UIControll in UIScrollView not receiving touch events

筅森魡賤 提交于 2019-12-10 12:55:51
问题 I use SevenSwitch in my project. I need to add it into a UIScrollView but it seems that the control can not receive touch events when I add it into scroll view. I tried sub classing scrollview and overriding below code: - (BOOL)touchesShouldCancelInContentView:(UIView *)view { return NO; } also added: self.scrollView.delaysContentTouches = NO; but still can not receive the touch event. How can I stop scrollview from preventing the UIControl from receiving touches? Update I have a tap gesture

Why doesn't UIScrollView/UITableview respond to taps on the status bar, and scroll to the top?

∥☆過路亽.° 提交于 2019-12-10 12:46:08
问题 When I tap on the status bar, the UIScrollView in my app does not respond and scroll to the top. Nothing happens. What could cause the UIScrollView to ignore taps on the status bar? 回答1: This can occur when there are multiple instances of UIScrollView (or a subclass of UIScrollView , such as UITableView ) with the scrollsToTop property set to YES on the same view, such as when a UIScrollView is added as a subview to a UIScrollView . Make sure that the scrollsToTop property of only one scroll