Table View Cell value from iphone
Posted
by Shibin Moideen
on Stack Overflow
See other posts from Stack Overflow
or by Shibin Moideen
Published on 2009-10-02T06:42:27Z
Indexed on
2010/04/10
12:03 UTC
Read the original article
Hit count: 318
iphone
|uitableviewcell
Hi all, I just want to get the value of a cell in the table view when i tap on it.. can any one help me in this.?
Thanks in Advance Shibin Moideen
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
appDelegate.courseName=[appDelegate.courses objectAtIndex:indexPath];
NSLog(@"%@",appDelegate.courseName);
DetailCourseViewController *detailController = [[DetailCourseViewController alloc]
initWithNibName:@"DetailCourseView" bundle:nil];
[self presentModalViewController:detailController animated:YES];
}
is that done in this way. also i need to store that value in a string which i declared in the app delegate.
© Stack Overflow or respective owner