Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EGOTableViewPullRefresh - how to use it?

Tags:

iphone

How embarrasing indeed, but I am unable to work out how to install or implement EGOTableViewPullRefresh. I really would appreciate a push in the right direction.

I have downloaded the source, and I've included it in my project.

In my view controller class I have replaced : UITableView with : EGORefreshTableHeaderView - but that's giving all sorts of problems.

I searched for several hours on Google, and read all the related topics here.

I am missing something fundamental because I also wasn't able to install the JSON stuff I got on github either. So I really would appreciate the help - which I could use for these kinds of things in the future.

Thanks a lot.

like image 490
James K Avatar asked Nov 27 '25 09:11

James K


1 Answers

This is easy. Copy EGOTableViewPullRefresh folder to your project, add EGORefreshTableHeaderDelegate delegate to your viewcontrollerclass.h and implement the following methods:

- (void)reloadTableViewDataSource
- (void)doneLoadingTableViewData
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
- (void)egoRefreshTableHeaderDidTriggerRefresh:(EGORefreshTableHeaderView*)view
- (BOOL)egoRefreshTableHeaderDataSourceIsLoading:(EGORefreshTableHeaderView*)view
like image 123
Rickie Avatar answered Nov 29 '25 05:11

Rickie