![(logo)](http://images.cnitblog.com/blog2015/497279/201505/051004492043385.png)
## MJRefresh
* An easy way to use pull-to-refresh
## Contents
* Getting Started
* [Features【Support what kinds of controls to refresh】](#Support what kinds of controls to refresh)
* [Installation【How to use MJRefresh】](#How to use MJRefresh)
* [Who's using【More than hundreds of Apps are using MJRefresh】](#>More than hundreds of Apps are using MJRefresh)
* [Classes【The Class Structure Chart of MJRefresh】](#The Class Structure Chart of MJRefresh)
* Comment API
* [MJRefreshComponent.h](#MJRefreshComponent.h)
* [MJRefreshHeader.h](#MJRefreshHeader.h)
* [MJRefreshFooter.h](#MJRefreshFooter.h)
* [MJRefreshAutoFooter.h](#MJRefreshAutoFooter.h)
* Examples
* [Reference](#Reference)
* [The drop-down refresh 01-Default](#The drop-down refresh 01-Default)
* [The drop-down refresh 02-Animation image](#The drop-down refresh 02-Animation image)
* [The drop-down refresh 03-Hide the time](#The drop-down refresh 03-Hide the time)
* [The drop-down refresh 04-Hide status and time](#The drop-down refresh 04-Hide status and time)
* [The drop-down refresh 05-DIY title](#The drop-down refresh 05-DIY title)
* [The drop-down refresh 06-DIY the control of refresh](#The drop-down refresh 06-DIY the control of refresh)
* [The pull to refresh 01-Default](#The pull to refresh 01-Default)
* [The pull to refresh 02-Animation image](#The pull to refresh 02-Animation image)
* [The pull to refresh 03-Hide the title of refresh status](#The pull to refresh 03-Hide the title of refresh status)
* [The pull to refresh 04-All loaded](#The pull to refresh 04-All loaded)
* [The pull to refresh 05-DIY title](#The pull to refresh 05-DIY title)
* [The pull to refresh 06-Hidden After loaded](#The pull to refresh 06-Hidden After loaded)
* [The pull to refresh 07-Automatic back of the pull01](#上The pull to refresh 07-Automatic back of the pull01)
* [The pull to refresh 08-Automatic back of the pull02](#The pull to refresh 08-Automatic back of the pull02)
* [The pull to refresh 09-DIY the control of refresh(Automatic refresh)](#The pull to refresh 09-DIY the control of refresh(Automatic refresh))
* [The pull to refresh 10-DIY the control of refresh(Automatic back)](#The pull to refresh 10-DIY the control of refresh(Automatic back))
* [UICollectionView01-The pull and drop-down refresh](#UICollectionView01-The pull and drop-down refresh)
* [UIWebView01-The drop-down refresh](#UIWebView01-The drop-down refresh)
* [Hope](#Hope)
## <a id="Support what kinds of controls to refresh"></a>Support what kinds of controls to refresh
* `UIScrollView`、`UITableView`、`UICollectionView`、`UIWebView`
## <a id="How to use MJRefresh"></a>How to use MJRefresh
* Installation with CocoaPods:`pod 'MJRefresh'`
* Manual import:
* Drag All files in the `MJRefresh` folder to project
* Import the main file:`#import "MJRefresh.h"`
```objc
Base Custom
MJRefresh.bundle MJRefresh.h
MJRefreshConst.h MJRefreshConst.m
UIScrollView+MJExtension.h UIScrollView+MJExtension.m
UIScrollView+MJRefresh.h UIScrollView+MJRefresh.m
UIView+MJExtension.h UIView+MJExtension.m
```
## <a id=">More than hundreds of Apps are using MJRefresh"></a>More than hundreds of Apps are using MJRefresh
<img src="http://images0.cnblogs.com/blog2015/497279/201506/141212365041650.png" width="200" height="300">
* More information of App can focus on:[M了个J-博客园](http://www.cnblogs.com/mjios/p/4409853.html)
## <a id="The Class Structure Chart of MJRefresh"></a>The Class Structure Chart of MJRefresh
![](http://images0.cnblogs.com/blog2015/497279/201506/132232456139177.png)
- `The class of red text` in the chart:You can use them directly
- The drop-down refresh control types
- Normal:`MJRefreshNormalHeader`
- Gif:`MJRefreshGifHeader`
- The pull to refresh control types
- Auto refresh
- Normal:`MJRefreshAutoNormalFooter`
- Gif:`MJRefreshAutoGifFooter`
- Auto Back
- Normal:`MJRefreshBackNormalFooter`
- Gif:`MJRefreshBackGifFooter`
- `The class of non-red text` in the chart:For inheritance,to use DIY the control of refresh
- About how to DIY the control of refresh,You can refer the Class in below Chart<br>
<img src="http://images0.cnblogs.com/blog2015/497279/201506/141358159107893.png" width="30%" height="30%">
## <a id="MJRefreshComponent.h"></a>MJRefreshComponent.h
```objc
/** The Base Class of refresh control */
@interface MJRefreshComponent : UIView
#pragma mark - Control the state of Refresh
/** BeginRefreshing */
- (void)beginRefreshing;
/** EndRefreshing */
- (void)endRefreshing;
/** IsRefreshing */
- (BOOL)isRefreshing;
#pragma mark - Other
/** According to the drag ratio to change alpha automatically */
@property (assign, nonatomic, getter=isAutomaticallyChangeAlpha) BOOL automaticallyChangeAlpha;
@end
```
## <a id="MJRefreshHeader.h"></a>MJRefreshHeader.h
```objc
@interface MJRefreshHeader : MJRefreshComponent
/** Creat header */
+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;
/** Creat header */
+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;
/** This key is used to storage the time that the last time of drown-down successfully */
@property (copy, nonatomic) NSString *lastUpdatedTimeKey;
/** The last time of drown-down successfully */
@property (strong, nonatomic, readonly) NSDate *lastUpdatedTime;
/** Ignored scrollView contentInset top */
@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop;
@end
```
## <a id="MJRefreshFooter.h"></a>MJRefreshFooter.h
```objc
@interface MJRefreshFooter : MJRefreshComponent
/** Creat footer */
+ (instancetype)footerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock;
/** Creat footer */
+ (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action;
/** NoticeNoMoreData */
- (void)noticeNoMoreData;
/** ResetNoMoreData(Clear the status of NoMoreData ) */
- (void)resetNoMoreData;
/** Ignored scrollView contentInset bottom */
@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom;
/** Automaticlly show or hidden by the count of data(Show-have data,Hidden- no data) */
@property (assign, nonatomic) BOOL automaticallyHidden;
@end
```
## <a id="MJRefreshAutoFooter.h"></a>MJRefreshAutoFooter.h
```objc
@interface MJRefreshAutoFooter : MJRefreshFooter
/** Is Automatically Refresh(Default is Yes) */
@property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh;
/** When there is much at the bottom of the control is automatically refresh(Default is 1.0,Is at the bottom of the control appears in full, will refresh automatically) */
@property (assign, nonatomic) CGFloat triggerAutomaticallyRefreshPercent;
@end
```
## <a id="Reference"></a>Reference
```objc
* Due to there are more functions of this framework,Don't write specific text describe its usage
* You can directly reference examples MJTableViewController、MJCollectionViewController、MJWebViewController,More intuitive and fast.
```
<img src="http://images0.cnblogs.com/blog2015/497279/201506/141345470048120.png" width="30%" height="30%">
## <a id="The drop-down refresh 01-Default"></a>The drop-down refresh 01-Default
```objc
self.tableView.header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
//Call this Block When enter the refresh status automatically
}];
或
// Set the callback(Once you enter the refresh status,then call the action of target,that is call [self loadNewData])
self.tableView.header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(loadNewData)];
// Enter the refresh status immediately
[self.tableView.header beginRefres
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
目前完成的功能 微信界面 显示右上角的菜单 显示最近联系人 最近联系人信息未读数的显示 通讯录界面 联系人的排序 联系人总数显示 发现界面 动态小红点的显示 购物选项的链接跳转 我界面 个人头像的上传与设置,及头像的保存 我的二维码界面的显示及二维码的保存 聊天界面 小视频的录制与发送 小视频的播放 聊天时间 图片的发送与显示 未发送成功的重发功能 语音的录制与发送 语音的播放动态效果 已知BUG 小视频和图片发送出去后不能立即更新显示缩略图 模仿微信的导航栏 在navigationBar底部添加一个添加了渐变层的view let blurBackView = UIView() blurBackView.frame = CGRect(x: 0, y: -20, width: kScreenW, height: 64) let gradintLayer = CAGradientLayer() gradintLayer.frame = CGRect(x: 0, y: 0, width: kScreenW, height: 64) gradintLayer.colors = [
资源推荐
资源详情
资源评论
收起资源包目录
基于Swift 3.0开发的微信 (1967个子文件)
libNIMSDK.a 33.76MB
libnvs.a 28.06MB
libNIMAVChat.a 27.71MB
libcrypto.a 20.17MB
libopus.a 12.88MB
libopenh264.a 7.24MB
libnio.a 4.78MB
libssl.a 4.01MB
libnts.a 2.49MB
libevent.a 2.28MB
libaacplus.a 1.55MB
rtmp.c 134KB
amf.c 27KB
hashswf.c 18KB
parseurl.c 9KB
log.c 5KB
error.c 436B
LFNALUnit.cpp 10KB
8.gif 14.28MB
1.gif 5.65MB
6.gif 3.44MB
3.gif 839KB
7.gif 742KB
4.gif 510KB
5.gif 224KB
2.gif 53KB
handshake.h 34KB
AFURLSessionManager.h 29KB
AFURLRequestSerialization.h 22KB
AFHTTPSessionManager.h 19KB
NIMNetCallManagerProtocol.h 16KB
NIMTeamManagerProtocol.h 15KB
AFURLResponseSerialization.h 12KB
TZImagePickerController.h 12KB
rtmp.h 11KB
dhgroups.h 10KB
SVProgressHUD.h 10KB
UIButton+AFNetworking.h 10KB
NIMChatroomManagerProtocol.h 9KB
dh.h 9KB
AFImageDownloader.h 9KB
NIMGlobalDefs.h 8KB
NIMConversationManagerProtocol.h 8KB
GPUImageFramework.h 8KB
AFNetworkReachabilityManager.h 8KB
LFLiveSession.h 7KB
NIMRTSManagerProtocol.h 7KB
NIMUserManagerProtocol.h 7KB
NIMMessage.h 6KB
GPUImage.h 6KB
NIMMediaManagerProtocol.h 6KB
NIMNetCallOption.h 6KB
UIImageView+AFNetworking.h 6KB
NIMChatManagerProtocol.h 6KB
AFSecurityPolicy.h 6KB
AFAutoPurgingImageCache.h 6KB
amf.h 5KB
GPUImageFilter.h 5KB
AFNetworkActivityIndicatorManager.h 5KB
GPUImageVideoCamera.h 5KB
NIMLoginManagerProtocol.h 5KB
TZImageManager.h 5KB
GPUImageOutput.h 5KB
UIWebView+AFNetworking.h 4KB
LFNALUnit.h 4KB
NIMSystemNotification.h 4KB
NIMSystemNotificationManagerProtocol.h 4KB
MJRefreshComponent.h 4KB
NIMAVChatDefs.h 4KB
rtmp_sys.h 4KB
NIMTeamNotificationContent.h 4KB
LFLiveVideoConfiguration.h 4KB
NIMCustomObject.h 3KB
NIMChatroomMemberRequest.h 3KB
NIMUser.h 3KB
NIMRTSConferenceManagerProtocol.h 3KB
NIMChatroomNotificationContent.h 3KB
NIMTeam.h 3KB
LFVideoCapture.h 3KB
GPUImageHoughTransformLineDetector.h 3KB
NIMMessageSearchOption.h 3KB
NIMSDKConfig.h 3KB
GPUImageCannyEdgeDetectionFilter.h 3KB
KZVideoSupport.h 3KB
NIMSDK.h 3KB
LFLiveAudioConfiguration.h 3KB
NIMImageObject.h 3KB
GPUImageMovieWriter.h 3KB
GPUImageContext.h 2KB
bytes.h 2KB
NIMTeamDefs.h 2KB
MJRefreshConst.h 2KB
UIProgressView+AFNetworking.h 2KB
KZVideoConfig.h 2KB
GPUImageHarrisCornerDetectionFilter.h 2KB
NIMMessageSetting.h 2KB
GPUImageMovie.h 2KB
NIMRTSOption.h 2KB
NIMLoginClient.h 2KB
UIRefreshControl+AFNetworking.h 2KB
共 1967 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
LeonDL168
- 粉丝: 2874
- 资源: 772
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功