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.
Asked
Active
Viewed 52 times
-1

Apurv
- 17,116
- 8
- 51
- 67

user3550405
- 1
- 5
-
You want? That's great, do it. – Léo Natan Apr 26 '14 at 11:57
-
That's not an answer!!! – user3550405 Apr 26 '14 at 12:18
-
And "here's my homework, how do I do it?" is not a valid Stack Overflow question. – Léo Natan Apr 26 '14 at 12:21
2 Answers
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