-1

I've a UITableView with pull to refresh added to it, I want when my viewDidAppear executes it scrolls above my cells to activate pull to refresh action.

Apurv
  • 17,116
  • 8
  • 51
  • 67

2 Answers2

1

You should not scroll your cells but you should directly call the refresh method when viewDidAppear gets called. The action which you are taking at the time of pull to refresh, you can directly fire at the time of viewDidAppear.

Apurv
  • 17,116
  • 8
  • 51
  • 67
-1

Apurv is probably right that you should refresh your tableView programmatically.

Anyway, if you want to scroll tableView somewhere, you can do it with:

[self tableView] scrollToRowAtIndexPath:

more info/credit: Setting scroll position in UITableView

Community
  • 1
  • 1
soprof
  • 326
  • 2
  • 6