Alright, I'm at a wall. I'm trying to copy the SELECTED ROW from a Table View and add the contents to an ARRAY.
I tried this, but to no avail:
[self.templist addObject:[self.songsList objectAtIndex:indexPath.row]];
Any thoughs would be appreciated. Above, I tried to add the row to an array called templist. But, no luck.
Thanks,
What do you actually want to copy..? do you mean a tableViewCell
...
if its a tableViewCell
then its an easytask..
youcan use following line:
[NSIndexPath *index= [NSIndexPath indexPathForRow:3 inSection:0]; // Suppose cell no 3 in section 0
UITableViewCell *myCell = [tableName cellForRowAtIndexPath:index];
[yourArray addObject:myCell];
Hope this will help you.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments