MJRefresh

作者: blockstrong | 来源:发表于2018-09-18 14:17 被阅读0次

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

    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

          本文链接:https://www.haomeiwen.com/subject/ykgunftx.html