1

I wanted to know if it would be able to create a pull to refresh feature in ios using swift. I know how to do it when refreshing a table view but is it possible to do it without a table view just in a regular view controller ?

Nilesh Patel
  • 6,318
  • 1
  • 26
  • 40
sauly
  • 27
  • 1
  • 1
  • 7

2 Answers2

2

Yes, You can easily do it using UIScrollView as UITableView is subclass of UIScrollView

Nilesh Patel
  • 6,318
  • 1
  • 26
  • 40
0

Yes you can. As Nilesh Patel pointed it, it can be done using a scrollview; but also any kind of UIView would do it.

To do it on other views than UIScrollview, make your view draggable move uiview with finger

Simply allow your view to be dragged, and detect the appropriate condition:

How do you make an image follow your finger in objective-c?

Community
  • 1
  • 1
Antzi
  • 12,831
  • 7
  • 48
  • 74