Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cocoa 滚动到Lion上刷新_Cocoa_Osx Lion_Refresh_Nsscrollview_Pull To Refresh - Fatal编程技术网

Cocoa 滚动到Lion上刷新

Cocoa 滚动到Lion上刷新,cocoa,osx-lion,refresh,nsscrollview,pull-to-refresh,Cocoa,Osx Lion,Refresh,Nsscrollview,Pull To Refresh,有没有可能在Lion上获得iOS上许多应用程序中都有的“pull to refresh”滚动视图?我已经能够在滚动视图的“反弹区域”中获取视图,并检测何时刷新。我的问题是在刷新时保持视图向上滚动,然后在刷新完成后禁用 有什么想法吗?我终于实现了这一点,我在这里公开了我的代码:我尝试了很多事情,这太荒谬了。我曾尝试将“刷新视图”添加到文档的子视图中,并将所有内容向下移动,但看到所有内容向下传送看起来很奇怪。我在寻找一个自然的解决方案。

有没有可能在Lion上获得iOS上许多应用程序中都有的“pull to refresh”滚动视图?我已经能够在滚动视图的“反弹区域”中获取视图,并检测何时刷新。我的问题是在刷新时保持视图向上滚动,然后在刷新完成后禁用


有什么想法吗?

我终于实现了这一点,我在这里公开了我的代码:

我尝试了很多事情,这太荒谬了。我曾尝试将“刷新视图”添加到文档的子视图中,并将所有内容向下移动,但看到所有内容向下传送看起来很奇怪。我在寻找一个自然的解决方案。