In my iPad application I added UISearchBar programmatically.
When I click on the searchBar, a table containing data appears. When I tap on the row in table, it should navigate to new view
for example:

when I tap on “reliance” it should show a new view. Any suggestions on how I can accomplish this?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
ContentController *detailview = [[ContentController alloc] initWithNibName:@"ContentController" bundle:nil];
detailview.detailString = [NSString stringWithFormat:@"%d",indexPath.row];
[self.view addSubView:detailView];
[detailview release];
}
so I added the code above. Do I need to do anything else?
Implement the
UITableViewDelegatemethoddidSelectRowAtIndexPathand push your new view onto the navigation stack.