// MyLoadFootWeiboData.h
// 新浪微博
//
// Created by jose on 15-4-2.
// Copyright (c) 2015年 jose. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MyLoadFootWeiboData : UIView
+(instancetype)MyLoadFoot;
-(void)BeginRefreshing;
-(void)EndRefreshing;
@property (weak, nonatomic) IBOutlet UILabel *MyLabel;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *MyStatus;
//判断是否在刷新
@property(nonatomic,assign,getter=isRefreshing)BOOL Refreshing;
@end
**********************************************************************************************************************
***********************************************************************************************************************
***********************************************************************************************************************
//
// MyLoadFootWeiboData.m
// 新浪微博
//
// Created by jose on 15-4-2.
// Copyright (c) 2015年 jose. All rights reserved.
//
#import "MyLoadFootWeiboData.h"
@implementation MyLoadFootWeiboData
//加载xib
+(instancetype)MyLoadFoot{
return [[[NSBundle mainBundle]loadNibNamed:@"MyLoadFootWeiboData" owner:nil options:nil]lastObject];
}
//开始刷新
-(void)BeginRefreshing{
_MyLabel.text=@"正在拼命加载更多的数据";
//开始加载
[_MyStatus startAnimating];
_Refreshing=YES;
}
//停止刷新
-(void)EndRefreshing{
_MyLabel.text=@"上拉可以加载更多的数据";
[_MyStatus stopAnimating];
_Refreshing=NO;
}
@end