标签:io ar color os 使用 sp for art log
自定义样式
self.pullTableView.pullArrowImage = [UIImage imageNamed:@"blackArrow"]; self.pullTableView.pullBackgroundColor = [UIColor yellowColor]; self.pullTableView.pullTextColor = [UIColor blackColor];
2
#pragma mark - Refresh and load more methods
- (void) refreshTable
{
/*
Code to actually refresh goes here.
*/
self.pullTableView.pullLastRefreshDate = [NSDate date];
self.pullTableView.pullTableIsRefreshing = NO;
NSLog(@"refreshTable finish");
}
- (void) loadMoreDataToTable
{
/*
Code to actually load more data goes here.
*/
self.pullTableView.pullTableIsLoadingMore = NO;
NSLog(@"loadMoreDataToTable finish");
}
3
#pragma mark - PullTableViewDelegate
- (void)pullTableViewDidTriggerRefresh:(PullTableView *)pullTableView
{
NSLog(@"refreshTable start");
[self reload];
}
- (void)pullTableViewDidTriggerLoadMore:(PullTableView *)pullTableView
{
NSLog(@"loadMoreDataToTable start");
[self loadMore];
}
4
[self performSelector:@selector(refreshTable) withObject:nil afterDelay:0.0f]; [self performSelector:@selector(loadMoreDataToTable) withObject:nil afterDelay:0.0f];
IOS学习笔记——EGOTableViewPullRefresh使用(二)
标签:io ar color os 使用 sp for art log
原文地址:http://my.oschina.net/bingshanguxue/blog/353737