Is it possibile add UIRefreshControl
at the bottom of the UITableView
?
I would use it to load more data.
Please, Any suggest?
相关问题
- Custom UITableview cell accessibility not working
- UITableViewCell layout not updating until cell is
- Showing a checkmark accessory view move the table
- Setting the inputAccessoryView of a UITextField to
- How to put ActivityIndicator inside UIImage inside
相关文章
- UITableView dragging distance with UIRefreshContro
- Popover segue to static cell UITableView causes co
- TransitionFromView removes previous view
- ios7 new pan gesture to go back in navigation stac
- Navigation bar disappears when typing in UISearchC
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
- Inserting row and deleting row simultaneously. UIT
- Swift Change the tableviewcell border color accord
I believe there won't be any simple solution to this problem. May be someone could write a separate library to implement this behaviour plus it will cause more complications once you cache data in tableview.
But let us break down the problem and that might help you in achieving what you want. I have used the following code to add more rows in the app:
Or you could do something like that:
You must have seen such methods in many question as i have described above and certainly not what you have asked for. But what you can do is while the above code in in process to load more data, you can add a subview and show a couple of images similar to what UIRefreshControl offers. Add the images in the subview to be shown as a progress until the above code gets executed. Home this helps.
By the way, i will suggest you not to do that as it will just waste your time for making something so smaller unless you are just doing it for learning purposes.
For UITableView I suggest the following approach:
I didn't use the scroll view methods intentionally because the scroll view is slow. It happens that scroll view scrolls, we request more data, refresh more rows, and scroll view is not yet finished with scrolling, it is still decelerating and causing problems with fetching more data.