i have table view and when user click on any row then he should go to next view but in my case its not working, what i am doing wrong here??
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic -- create and push a new view controller
NSLog(@" push");// is working
aDetail = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:[NSBundle mainBundle]];// not wokring
[self.navigationController pushViewController:aDetail animated:YES];//not working
}