if (resultCode == 0)ui
{code
self.imageServerString = [responseObject objectForKey:@"imagesServerURL"];rem
[self buildOrderListData:responseObject];it
[self.contentTableView reloadData];io
}ast
else if(resultCode == 362)object
{List
[self.delegateControl showLogin];im
}error
self.totalPages = [[responseObject objectForKey:@"totalPages"] intValue];
if (currentPage < self.totalPages)
{
[self.contentTableView setShowsInfiniteScrolling:true];
}
else
{
[self.contentTableView setShowsInfiniteScrolling:NO];
}
if (page == 1) {
[self.contentTableView.pullToRefreshView stopAnimating];
}
else
{
[self.contentTableView.infiniteScrollingView stopAnimating];
}
}
failure:^(AFHTTPRequestOperation *operation, NSError *error) {
[self.httpRequestArray removeObject:operation];
if (error.code != NSURLErrorCancelled) {
[self showToast:kRequestFailedToTryString];
}
if (page == 1) {
[self.contentTableView.pullToRefreshView stopAnimating];
}
else
{
[self.contentTableView.infiniteScrollingView stopAnimating];
}
}]];