UIScrollView scrollsToTop Property
来源:互联网 发布:淘宝商家中心 编辑:程序博客网 时间:2024/06/03 05:36
UIScrollView scrollsToTop Property
A Boolean value that controls whether the scroll-to-top gesture is enabled.
Declaration
SWIFT
var scrollsToTop: Bool
OBJECTIVE-C
@property(nonatomic) BOOL scrollsToTop
Discussion
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 NO, its delegate returns NO 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 YES.
Special Considerations
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 YES.
Availability
Available in iOS 2.0 and later.
如果屏幕上有一个以上的 scroll view的 scrollsToTop属性为 YES,则滚动到顶部的手势无效。
A Boolean value that controls whether the scroll-to-top gesture is enabled.
Declaration
SWIFT
var scrollsToTop: Bool
OBJECTIVE-C
@property(nonatomic) BOOL scrollsToTop
Discussion
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 NO, its delegate returns NO 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 YES.
Special Considerations
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 YES.
Availability
Available in iOS 2.0 and later.
如果屏幕上有一个以上的 scroll view的 scrollsToTop属性为 YES,则滚动到顶部的手势无效。
0 0
- UIScrollView scrollsToTop Property
- iOS: UIScrollView的属性scrollsToTop
- 谈一谈UIScrollView的scrollsToTop属性
- scrollsToTop小结
- iOS scrollsToTop属性失效
- iOS中scrollsToTop小结
- IOS中scrollsToTop问题
- ios scrollsToTop失效解决
- IOS中scrollsToTop问题小结
- IOS中scrollsToTop问题小结
- UIScrollView
- UIScrollView
- UIscrollView
- UIscrollView
- UIScrollView
- UIScrollView
- UIscrollView
- UIScrollView
- swift的基础教程
- 判断iOS的推送是否打开
- OpenCV简单粗糙的指尖检测方法(FingerTips Detection)
- J2EEScan:J2EE安全扫描(Burp插件)
- 几种常用排序算法
- UIScrollView scrollsToTop Property
- Log4j使用相对路径指定log文件及使用总结
- opencv2中的背景/前景分离(类BackgroundSubtractor)
- Linux下如何压缩,解压文件
- iOS开发总结之代码规范
- 说说我的PMP认证考试
- PowerDesigner生成mysql字段comment注释
- 关于Insufficient space for shared memory file解决办法
- Web应用安全扫描器Gryffin