iOS -- MJrefresh
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS -- MJrefresh相关的知识,希望对你有一定的参考价值。
- (void)refresh { MJRefreshGifHeader *header = [MJRefreshGifHeader headerWithRefreshingTarget:self refreshingAction:@selector(getData)]; NSMutableArray *images = [NSMutableArray array]; for (int i = 1; i < 17; i++) { UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"Load_%d", i]]; [images addObject:image]; } // Set the ordinary state of animated images [header setImages:images forState:MJRefreshStateIdle]; // Set the pulling state of animated images(Enter the status of refreshing as soon as loosen) [header setImages:images forState:MJRefreshStatePulling]; // Set the refreshing state of animated images [header setImages:images forState:MJRefreshStateRefreshing]; header.lastUpdatedTimeLabel.hidden = YES; header.stateLabel.hidden = YES; // Set header self.tableview.mj_header = header; }
以上是关于iOS -- MJrefresh的主要内容,如果未能解决你的问题,请参考以下文章