i have the following code
if ([[tableView cellForRowAtIndexPath: indexPath].textLabel.text isEqualToString: @"added"]) {
NSLog (@"hello");
FinalViewController *anotherViewController = [[FinalViewController alloc] initWithNibName:@"FinalViewController" bundle:nil];
NSLog (@"hello2");
[self.navigationController pushViewController:anotherViewController animated:YES];
[anotherViewController release];
NSLog (@"hello3");
and it does absolutely nothing on user click. when testing it, all logs appear so im not sure where the problem is located.
self.navigationControllermay be nil. How was the table view controller added to the navigation controller?