I am trying to get position of cell in tableview. from this code i am getting cell position
int numberOfSections = [UITableView numberOfSections];
int number
NOTE:I hope, question might have updated again, please use the other answers that may applicable to you.
You can use the visibleCells method which will return the currently visible cells in your tableview:
NSArray *visibleCellsList=[tableview visibleCells];
for (UITableViewCell* currentCell in visibleCellsList) {
NSLog(@"cell : %@ \n\n",currentCell.textLabel.text);
}