Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity View doesn't appear in UITableView when it has a tableHeaderView #57

Open
jvenegas opened this issue Apr 12, 2013 · 0 comments

Comments

@jvenegas
Copy link

Hello,

The UIActivityView doesn't appear after calling "beginRefreshing". That is only happening when a UITableView has a tableHeaderView set up, like this code:

ODRefreshControl *refreshControl = [[ODRefreshControl alloc] initInScrollView:self.tableView];
[refreshControl addTarget:self action:@selector(dropViewDidBeginRefreshing:) forControlEvents:UIControlEventValueChanged];
self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 10)];
[refreshControl beginRefreshing];

Thank you for this Refresh Control guys!

Edit

I fixed with this code:

   [refreshControl beginRefreshing];
    //Hack to fix the Bug in the ODRefreshControl when UITableView has a header
    [tableView setContentOffset:CGPointMake(0.0f, -44.0f) animated:YES];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant