iPhone app, navigationcontroller not functioning?
Posted
by
dramaticlook
on Stack Overflow
See other posts from Stack Overflow
or by dramaticlook
Published on 2012-04-11T23:24:19Z
Indexed on
2012/04/11
23:30 UTC
Read the original article
Hit count: 230
I have 4 tabs in a tab bar. In one of the tabs i want to use a navigation, i.e. when i click an item from the list it should go to some details page about it. I have the list page where i have the navigation bar and the list of items. I can scroll them, but when I click any of them the selection animation happens, console logs the true row value, it even prints log instructions from constructor of the Details page but I can not see the Details page showing up. (btw Xcode 3.2.6 with iOS 4.3)
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *rowValue = [myStrings objectAtIndex:indexPath.row];
NSLog(rowValue);
//[Utility setStr:rowValue];
[self.myTable deselectRowAtIndexPath:indexPath animated:TRUE];
//DETAILS PAGE HERE!!!!
RestViewController * rest= [[RestViewController alloc] init];
rest.scoreLabel.text = rowValue;
[self.navigationController pushViewController:rest animated:TRUE];
[rest release];
}
Anybody having any idea? Thanks in advance!!!
© Stack Overflow or respective owner