ios - Select next row programmatically -


how can select next row programmatically in ios?

i have nextbutton on view, , want mytable select next row after clicking nextbutton.

[mytable selectrowatindexpath: ??????                  animated:yes             scrollposition:uitableviewscrollpositionmiddle]; 

is code correct?

create variable current index of table

long currentindex; 

create index path , select row code :

currentindex = currentindex +1; nsindexpath *indexpath = [nsindexpath indexpathforrow:currentindex insection:0]; [mytable selectrowatindexpath: indexpath                  animated:yes             scrollposition:uitableviewscrollpositionmiddle]; 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -