When a user drags the tableView in the upwards direction, the bottomRefreshControl fades into place on top of the tableView rows that are being dragged upwards. This behavior differs from how the normal UIRefreshControl works; a UIRefreshControl on the top of a UITableView usually appears from beneath the tableView as a user drags the tableView downwards.
I was able to achieve this desired behavior by making a change to the following code to UIScrollView+BottomRefreshControl.m:
I've tried this method, but refresh control is totally dissappeared. I use it not on root but pushed view controller, maybe problem in this?
Could you give a piece of advice?
I have setup a bottomRefreshControl using the following code:
When a user drags the tableView in the upwards direction, the bottomRefreshControl fades into place on top of the tableView rows that are being dragged upwards. This behavior differs from how the normal UIRefreshControl works; a UIRefreshControl on the top of a UITableView usually appears from beneath the tableView as a user drags the tableView downwards.
I was able to achieve this desired behavior by making a change to the following code to UIScrollView+BottomRefreshControl.m:
By adding a negative zPosition to the fakeTableView layer, the bottomRefreshControl appears from beneath the tableView as a user drags upwards.
The value of the zPosition can be any negative number, since the default value for layer zPosition's is 0.