vlasov / CCBottomRefreshControl

MIT License
319 stars 77 forks source link

Invisible in UITableViewController #11

Open EugeneKazaev opened 9 years ago

EugeneKazaev commented 9 years ago

I'm trying to use it inside of regular UITableViewContoller, it works as expected, but the control is invisible, so i cant see it

UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.attributedTitle = [[NSAttributedString alloc] initWithString:@"Pull to load more"];
refreshControl.triggerVerticalOffset = 100.;
[refreshControl addTarget:self
                   action:@selector(loadMoreEntitiesTaped:)
         forControlEvents:UIControlEventValueChanged];
self.tableView.bottomRefreshControl = refreshControl;
8of commented 9 years ago

+1 here, unfortunatelly. :+1:

I tried View Debug in sample project: screenshot 2015-05-10 00 16 29

And in my project with regular UITableViewController: screenshot 2015-05-10 00 15 39

So as you can see - in regular UITableViewController bottom refresher hasn't been even added.

justMaku commented 9 years ago

Try adding it in the viewDidAppear:

EugeneKazaev commented 9 years ago

Yeah, it works in viewDidAppear, but the place is weird

phnessu4 commented 9 years ago

viewDidAppear works for me too. thanks~

hamzaansari09 commented 9 years ago

adding in viewDidAppear works fine

8of commented 9 years ago

@justMaku Thanks, pal. It works like a charm! :+1:

Hardenn commented 9 years ago

@justMaku thanks. But it has to be fixed I think