I have developers working on an IOS app that has a grid of people in a view (a dating style app). I need "pull to refresh" to work on this screen, even if the users in the grid do not fill the screen yet. ie: if there are only 2-4 users, the grid isn’t full enough yet to scroll.
My iOS developer is telling me that iOS "pull to refresh" will not work if the grid is not full and scrollable. Is this true? Shouldn’t pull to refresh work regardless if the screen is full? Or how can this easily be programmed?
Thank you.
2
Answers
Here is about as basic of an example as you can get…
Note that we didn’t even add any subviews to the scroll view, and the refresh control still works.
Try setting
alwaysBouncesVertical
totrue
.From the docs for
UIScrollView
(which is a parent ofUITableView
):https://developer.apple.com/documentation/uikit/uiscrollview/1619383-alwaysbouncevertical