//
// EGORefreshTableHeaderView.h
// Demo
//
// Created by Devin Doty on 10/14/09October14.
// Copyright 2009 enormego. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
typedef enum{
EGOOPullRefreshPulling = 0,
EGOOPullRefreshNormal,
EGOOPullRefreshLoading,
} EGOPullRefreshState;
@protocol EGORefreshTableHeaderDelegate;
@interface EGORefreshTableHeaderView : UIView {
id _delegate;
EGOPullRefreshState _state;
UILabel *_lastUpdatedLabel;
UILabel *_statusLabel;
CALayer *_arrowImage;
UIActivityIndicatorView *_activityView;
}
@property(nonatomic,assign) id <EGORefreshTableHeaderDelegate> delegate;
- (void)refreshLastUpdatedDate;
- (void)egoRefreshScrollViewDidScroll:(UIScrollView *)scrollView;
- (void)egoRefreshScrollViewDidEndDragging:(UIScrollView *)scrollView;
- (void)egoRefreshScrollViewDidEndDraggingWithRefreshButton:(UIScrollView *)scrollView; //给刷新按钮调用
- (void)egoRefreshScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView;
@end
@protocol EGORefreshTableHeaderDelegate
- (void)egoRefreshTableHeaderDidTriggerRefresh:(EGORefreshTableHeaderView*)view;
- (BOOL)egoRefreshTableHeaderDataSourceIsLoading:(EGORefreshTableHeaderView*)view;
@optional
- (NSDate*)egoRefreshTableHeaderDataSourceLastUpdated:(EGORefreshTableHeaderView*)view;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
Webview pull and down refresh demo
共30个文件
png:11个
m:4个
h:3个
5星 · 超过95%的资源 需积分: 9 13 下载量 32 浏览量
2013-08-01
16:51:48
上传
评论
收藏 88KB ZIP 举报
温馨提示
上拉下拉刷新处理,可负载UIWebView UIScrollView或UITableView控件协调处理
资源推荐
资源详情
资源评论
收起资源包目录
UIWebViewPullDownRefreshDemo.zip (30个子文件)
UIWebViewPullDownRefreshDemo
UIWebViewPullDownRefreshDemo
ViewController.m 3KB
UIWebViewPullDownRefreshDemo-Info.plist 1KB
EGORefreshTableHeaderView.h 2KB
EGORefreshTableHeaderView.m 10KB
en.lproj
MainStoryboard.storyboard 3KB
InfoPlist.strings 45B
main.m 353B
Default-568h@2x.png 18KB
EGORefreshImages
blackArrow@2x.png 2KB
whiteArrow.png 4KB
blueArrow.png 4KB
whiteArrow@2x.png 2KB
grayArrow@2x.png 2KB
grayArrow.png 2KB
blueArrow@2x.png 1KB
blackArrow.png 4KB
ViewController.h 589B
AppDelegate.h 294B
UIWebViewPullDownRefreshDemo-Prefix.pch 359B
Default.png 6KB
Default@2x.png 16KB
AppDelegate.m 2KB
UIWebViewPullDownRefreshDemo.xcodeproj
project.xcworkspace
contents.xcworkspacedata 173B
xcuserdata
Howard.xcuserdatad
UserInterfaceState.xcuserstate 10KB
shannonchou.xcuserdatad
UserInterfaceState.xcuserstate 16KB
xcuserdata
Howard.xcuserdatad
xcschemes
xcschememanagement.plist 500B
UIWebViewPullDownRefreshDemo.xcscheme 3KB
shannonchou.xcuserdatad
xcschemes
xcschememanagement.plist 500B
UIWebViewPullDownRefreshDemo.xcscheme 3KB
project.pbxproj 18KB
共 30 条
- 1
资源评论
- 给力地板油2014-10-16好样例 谢谢分享
- MYBOYER2018-01-30感谢提供资源
- dwb58284132013-11-15不错,好东西,随便也可用研究怎么把图片放到webView后面
漂行者
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功