实现下拉刷新效果 IOS所有版本均可使用
<div id="cnblogs_post_body">先上图,没图没真相http://pic002.cnblogs.com/images/2012/471327/2012112722134898.png
http://pic002.cnblogs.com/images/2012/471327/2012112722130243.png
http://pic002.cnblogs.com/images/2012/471327/2012112722144212.png
http://pic002.cnblogs.com/images/2012/471327/2012112722145560.png
下拉刷新效果使用第三方类库
ODRefreshControl
例子目录结构:
Resources 资源文件夹
ThirdPartLib 第三方类库文件夹
直接上核心调用代码,一共只有六句,简单好用。
设置下拉刷新的位置
<div class="cnblogs_code">V_animateIndicator *v = [ initWithFrame:CGRectMake(0.f, 0.f, 20.f, 20.f)];ODRefreshControl *refreshControl = [ initInScrollView:self.pTV_main activityIndicatorView:v];;
页:
[1]