Wednesday, 7 August 2013

navigation from tableview to another view

navigation from tableview to another view

I am working in a table view app using story board . I want to perform
event on selection
of cell in table view . So when I select a cell element , a next
view(detailview) should be
open for displaying further details .
-(void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
self.dv = [[Detail alloc]initWithNibName:@"Detail" bundle:nil];
dv.dic = [self.arr1 objectAtIndex:indexPath.row];
[self.view addSubview:dv.view];
}

No comments:

Post a Comment