{"action":"created","issue":{"url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/32","labels_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/32/comments","events_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/32/events","html_url":"https://github.com/CoderMJLee/MJRefresh/issues/32","id":56321438,"number":32,"title":"缺少分页功能","user":{"login":"jbasttdi","id":4523109,"avatar_url":"https://avatars.githubusercontent.com/u/4523109?v=3","gravatar_id":"","url":"https://api.github.com/users/jbasttdi","html_url":"https://github.com/jbasttdi","followers_url":"https://api.github.com/users/jbasttdi/followers","following_url":"https://api.github.com/users/jbasttdi/following{/other_user}","gists_url":"https://api.github.com/users/jbasttdi/gists{/gist_id}","starred_url":"https://api.github.com/users/jbasttdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbasttdi/subscriptions","organizations_url":"https://api.github.com/users/jbasttdi/orgs","repos_url":"https://api.github.com/users/jbasttdi/repos","events_url":"https://api.github.com/users/jbasttdi/events{/privacy}","received_events_url":"https://api.github.com/users/jbasttdi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-03T01:39:05Z","updated_at":"2015-02-03T04:04:23Z","closed_at":null,"body":"现在使用了一下，一般使用上提刷新是想获取分页的数据，现在不支持分页，无法获取当前是哪页，而且如果当这页没数据时也没显示已到底这样的标识。\r\n希望能支持翻页功能。谢谢"},"comment":{"url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/comments/72589186","html_url":"https://github.com/CoderMJLee/MJRefresh/issues/32#issuecomment-72589186","issue_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/32","id":72589186,"user":{"login":"jbasttdi","id":4523109,"avatar_url":"https://avatars.githubusercontent.com/u/4523109?v=3","gravatar_id":"","url":"https://api.github.com/users/jbasttdi","html_url":"https://github.com/jbasttdi","followers_url":"https://api.github.com/users/jbasttdi/followers","following_url":"https://api.github.com/users/jbasttdi/following{/other_user}","gists_url":"https://api.github.com/users/jbasttdi/gists{/gist_id}","starred_url":"https://api.github.com/users/jbasttdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbasttdi/subscriptions","organizations_url":"https://api.github.com/users/jbasttdi/orgs","repos_url":"https://api.github.com/users/jbasttdi/repos","events_url":"https://api.github.com/users/jbasttdi/events{/privacy}","received_events_url":"https://api.github.com/users/jbasttdi/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T04:04:23Z","updated_at":"2015-02-03T04:04:23Z","body":"谢谢MJ，但能不能再提供一个方法，当上拉时，如果已经知道是最后一页，则不用进行上拉操作，同时提示信息可以修改。我的示例代码如下：\r\n```\r\n-(void)fetchNoticeDataWithCache:(BOOL)useCache andPage:(int)page{\r\n    NSMutableDictionary *paramDict=[[NSMutableDictionary alloc]init];\r\n    [paramDict setObject:[NSString stringWithFormat:@\"%d\",page] forKey:@\"page\"];\r\n    [paramDict setObject:[NSString stringWithFormat:@\"%d\",PAGESIZE] forKey:@\"pagesize\"];\r\n    TripNoticeApi *tripNoticeApi=[[TripNoticeApi alloc]initWithParamDict:paramDict andUseCache:useCache];\r\n    [tripNoticeApi startWithCompletionBlockWithSuccess:^(YTKBaseRequest *request) {\r\n        NSMutableArray<TripNotice> *rd=[tripNoticeApi getResponseNoticeList];\r\n        if (page==1) {\r\n            self.noticeArray=rd;\r\n        }else{\r\n            [self.noticeArray addObjectsFromArray:rd];\r\n        }\r\n        [self.tableView reloadData];\r\n        if (page==1) {\r\n            [self.tableView headerEndRefreshing];\r\n        }else{\r\n            [self.tableView footerEndRefreshing];\r\n        }\r\n        //判断是否是最后一页\r\n        if ([[NSNumber numberWithInteger:rd.count]intValue]<PAGESIZE) {\r\n            //已到最后一页\r\n            NSLog(@\"page end\");\r\n            [self.tableView setFooterReleaseToRefreshText:@\"已经全部加载完数据\"];\r\n        }\r\n    } failure:^(YTKBaseRequest *request) {\r\n        if (page==1) {\r\n            [self.tableView headerEndRefreshing];\r\n        }else{\r\n            [self.tableView footerEndRefreshing];\r\n        }\r\n        [AppUtil showAppError];\r\n        NSLog(@\"error\");\r\n    }];\r\n}\r\n```"}}