Sephiroth87/ODRefreshControl

Quick tip: Show UIActivityIndicator above searchBar...

Closed this issue · 1 comments

When using ODRefreshControl, I noticed that if a table view has a search bar, the UIActivityIndicator is hidden. Simply add this to your viewDidLoad:

self.tableView.contentOffset = CGPointMake(0, -44);

This will initiate the view -44 above the tableview/searchbar, showing the activity indicator.

Very useful when starting the refresh control programatically [refreshControl beginRefreshing]