MJRefresh

刚进入页面时,显示下来加载更多字样,这样看起来不太友好,

MyFooter 继承于 MJRefreshAutoGifFooter,然后在-(void)prepare方法里面

-(void)prepare

{

    [superprepare];

    // 设置正在刷新状态的动画图片

    NSMutableArray *refreshingImages = [NSMutableArray array];

    for(NSUIntegeri =1; i<=8; i++)

    {

        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"WL_Footer_Refresh_0%zd", i]];

        [refreshingImagesaddObject:image];

    }

    [self setImages:refreshingImages forState:MJRefreshStateRefreshing];

    [self setTitle:@"" forState:MJRefreshStateIdle];//空闲状态显示的字符置空

    [self setTitle:@"努力加载中" forState:MJRefreshStateRefreshing];

    [self setTitle:@"我是有底线的" forState:MJRefreshStateNoMoreData];

    self.stateLabel.textColor=[WLTools stringToColor:PublicTxtColor];

}

你可能感兴趣的:(MJRefresh)