sync scrollview in parallel way
来源:互联网 发布:洛阳理工学院网络教育 编辑:程序博客网 时间:2024/05/17 08:33
Check out the functions
- -setContentOffset:animated:
- -contentOffset
- -zoomScale
- -setZoomScale:animated:
- -zoomToRect:animated:
You can link this together in the delegate method -scrollViewDidScroll:, which is constantly called while the user is scrolling. ...
这种方法,除非就是找到了怎么区别代码的移动还是userdragger, 否则很容易导致问题啊,难道说由于放在了一个
delegate反而好了,因为只会进来一次??可以考虑哦:)
还有一个超级复杂的例子,用了很多notification
- (IBAction)toggleSynchronizing:(id)sender
{
if (synchronized) {å
NSView* synchronizedContentView = [synchronizedScrollView contentView];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:NSViewBoundsDidChangeNotification
object:synchronizedContentView];
}else {
NSView *synchronizedContentView=[synchronizedScrollView contentView];
[synchronizedContentView setPostsBoundsChangedNotifications:YES];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(synchronizedViewContentBoundsDidChange:)
name:NSViewBoundsDidChangeNotification
object:synchronizedContentView];
}
synchronized=!synchronized;
}
- sync scrollview in parallel way
- Compute PI in parallel
- Parallel In-Place Merge
- Parallel scan in HBase
- GNU Parallel in caffe
- Sync JavaScript in WKWebView
- log file sync and log file parallel wait event
- log file sync和log file parallel write的关系
- log file sync 与 log file parallel write 等待事件
- Parallel task in C# 4.0
- Parallel mex file in Matlab
- parallel programming in java introduce
- the way in csdn
- Keeping a Branch in Sync
- out-of-sync in juno
- sync,fsync,fdatasync in Linux
- Thinking in Current Programming Way
- Think in another way【Matrix67】
- Redis实战《红丸出品》1.4 快速入门
- Redis实战《红丸出品》2.1 Redis数据类型及操作前言
- 教你如何制作exe电子书
- Oracle数据库权限管理
- Redis实战《红丸出品》2.2 strings类型及操作
- sync scrollview in parallel way
- Redis实战《红丸出品》2.3 hashes类型及操作
- freeswitch txfax
- Redis实战《红丸出品》2.4 lists类型及操作
- TestNG 并发运行相关的核心概念 - 补充
- Redis实战《红丸出品》2.5 sets类型及操作
- 《Ext JS权威指南》节选:树的动态加载及节点维护
- 北京创业环境随记
- Redis实战《红丸出品》2.6 sorted sets类型及操作