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
2009-12-02 04:31:02
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
2009-12-02 04:40:06
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
2009-12-02 07:43:17