views:

87

answers:

2

I want to assign the value of indexpath.row of the row which is currently selected, to a variable, How to do that???

+1  A: 

Where (in what method) are you doing this?

This is pretty typical in my table view controllers for table views that only have one section:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

 int row = indexPath.row;

 // code using "row" here

}

gerry3
A: 

The thing is that i want to import many photos to my application from iphone photo library. I'm using UIImagePickerController to import them and is storing in each rows, one by one, of a tableview. I want to store the images selected by the imagePickerController to the row which is currrently selected in the table.

Nithin
This should be an update to your question (or as a new question since it's so different), not posted as an answer to your question.
gerry3