Last active
April 21, 2016 08:13
-
-
Save iT-Boyer/760d3a9045ac107a722a6e16746b16dc to your computer and use it in GitHub Desktop.
scrollView API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public var scrollsToTop: Bool | |
var scrollsToTop: Bool { get set } | |
Description | |
A Boolean value that controls whether the scroll-to-top gesture is enabled. | |
The scroll-to-top gesture is a tap on the status bar. When a user makes this gesture, the system asks the scroll view closest to the status bar to scroll to the top. If that scroll view has scrollsToTop set to false, its delegate returns false from scrollViewShouldScrollToTop:, or the content is already at the top, nothing happens. | |
After the scroll view scrolls to the top of the content view, it sends the delegate a scrollViewDidScrollToTop: message. | |
The default value of scrollsToTop is true. | |
On iPhone, the scroll-to-top gesture has no effect if there is more than one scroll view on-screen that has scrollsToTop set to true. | |
public var panGestureRecognizer: UIPanGestureRecognizer { get } | |
The underlying gesture recognizer for pan gestures. (read-only) | |
Your application accesses this property when it wants to more precisely control which pan gestures are recognized by the scroll view. | |
@available(iOS 7.0, *) | |
public var keyboardDismissMode: UIScrollViewKeyboardDismissMode // default is UIScrollViewKeyboardDismissModeNone | |
The manner in which the keyboard is dismissed when a drag begins in the scroll view. | |
See UIScrollViewKeyboardDismissMode for possible values. The default value is UIScrollViewKeyboardDismissModeNone | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment