![Pull to create / pull to refresh](https://s3.amazonaws.com/peyton.github.com/MOOPullGesture/Why.png)
# Introduction
----------
MOOPullGesture implements pull gestures on table views through a UIGestureRecognizer subclass. Built to be extensible, MOOPullGesture comes with pull-to-create and pull-to-refresh.
MOOPullGesture contains [`MOOPullGestureRecognizer`](https://github.com/peyton/MOOPullGesture/blob/master/MOOPullGesture/MOOPullGestureRecognizer.h), which tracks a table view's scrolling and communicates updates to a trigger view through a simple protocol, [`MOOTriggerView`](https://github.com/peyton/MOOPullGesture/blob/master/MOOPullGesture/MOOTriggerView.h).
# Usage
----------
The [`Demo Project`](https://github.com/peyton/MOOPullGesture/tree/master/Demo%20Project) folder contains working examples of pull-to-create and pull-to-refresh.
### Pull-to-create
Please see [`PullToCreateViewController.m`](https://github.com/peyton/MOOPullGesture/blob/master/Demo%20Project/MOOPullGesture%20Demo/PullToCreateViewController.m) and [`PullToCreateDelegate.m`](https://github.com/peyton/MOOPullGesture/blob/master/Demo%20Project/MOOPullGesture%20Demo/PullToCreateDelegate.m). Pay special attention to the `UIScrollViewDelegate` methods on the delegate--it's important to forward those.
### Pull-to-refresh
Take a look at [`PullToRefreshViewController.m`](https://github.com/peyton/MOOPullGesture/blob/master/Demo%20Project/MOOPullGesture%20Demo/PullToRefreshViewController.m).
# Installation
----------
###First: Clone into a submodule
In your project's folder, type:
git submodule add git://github.com/peyton/MOOPullGesture.git
A submodule allows your repository to contain a clone of an external project. If you don't want a submodule, use:
git clone git://github.com/peyton/MOOPullGesture.git
###Next: Add classes
Drag `MOOPullGesture/` into your Xcode project's file browser.
*Note:* An options dialog will pop up. If you're using MOOPullGesture as a submodule, you should uncheck "Copy items into destination group's folder (if needed)."
###Then: Add QuartzCore.framework
![QuartzCore.framework installation](https://s3.amazonaws.com/peyton.github.com/MOOPullGesture/AddQuartzCoreFramework.png)
With your application's target selected in the navigator, click on the "Build Phases" tab. Under "Link Binary With Libraries," click the "+" button and add `QuartzCore.framework`.
###Finally: Import the headers
#import "MOOPullGestureRecognizer.h"
...and a `MOOTriggerView`, either `MOOCreateView.h` or `MOORefreshView.h`
###Later: Update to the latest version
`cd` into the MOOPullGesture directory and run:
git pull
# Credits
----------
Inspired by Pier-Olivier Thibault's [PHRefreshTriggerView](https://github.com/pothibo/PHRefreshTriggerView), [Clear's](http://www.realmacsoftware.com/clear/) pull-to-create, and [Twitter's](http://itunes.apple.com/us/app/twitter/id333903271?mt=8) pull-to-refresh.
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——peyton-MOOPullGesture.zip
共50个文件
h:18个
m:16个
png:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 35 浏览量
2023-07-05
23:22:21
上传
评论
收藏 45KB ZIP 举报
温馨提示
iOS游戏应用源代码——peyton-MOOPullGesture.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——peyton-MOOPullGesture.zip (50个子文件)
peyton-MOOPullGesture-7b8137b
UNLICENSE 2KB
Demo Project
MOOPullGesture Demo.xcodeproj
project.pbxproj 27KB
MOOPullGesture Demo
PullToCreateDelegate.h 176B
CustomTriggerDataSource.m 830B
PullToCreateDataSource.m 1KB
CustomTriggerView.m 3KB
PullToRefreshViewController.h 429B
Square.png 117B
HipsterIpsumGenerator.m 6KB
PullToRefreshViewController.m 2KB
PullToRefreshDelegate.h 178B
MOOPullGesture Demo-Prefix.pch 341B
CustomTriggerView.h 301B
Icon.png 167B
[email protected] 125B
AppDelegate.h 309B
HipsterIpsumGenerator.h 206B
AppDelegate.m 4KB
main.m 295B
CustomTriggerDataSource.h 184B
PullToRefreshDelegate.m 345B
CustomTriggerViewController.h 428B
CustomTriggerDelegate.h 232B
PullToRefreshDataSource.m 1KB
PullToCreateViewController.m 4KB
PullToCreateDelegate.m 818B
PullToRefreshDataSource.h 304B
[email protected] 266B
PullToCreateViewController.h 421B
MOOPullGesture Demo-Info.plist 1KB
CustomTriggerViewController.m 2KB
en.lproj
InfoPlist.strings 45B
CustomTriggerDelegate.m 670B
PullToCreateDataSource.h 302B
MOOPullGesture.podspec 784B
.gitignore 624B
MOOPullGesture
MOOPullGestureRecognizer.h 2KB
MOOPullGestureRecognizerSubclass.h 329B
MOOCreateView.h 1KB
MOOTriggerView.h 309B
MOOCreateView.m 9KB
MOOPullGestureRecognizer.m 5KB
MOORefreshView.m 9KB
Resources
Support
ARCHelper.h 1KB
MOORefreshView.h 1KB
README.md 3KB
共 50 条
- 1
资源评论
快乐无限出发
- 粉丝: 1135
- 资源: 7274
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功