- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if ([[tableList objectAtIndex:indexPath.row] isEqual:@"First View"])
Might not be your problem, but if you are comparing 2 string you should be using isEqualToString: not isEqual:
Code:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if ([[tableList objectAtIndex:indexPath.row] isEqual:@"First View"])
Open up the debugger console in Xcode. What does it say about the run time exception that you're getting?
I don't think you've opened the debugger console. From the menu bar choose Run > Console. If your code uses NSLog or printf that's where the output goes. And when you have a run time exception some output is printed there that tells what kind of error you've encountered.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ThirdViewController" nib but the view outlet was not set.'"'
There are two simple ways to change your navBar's style/color: 1) barStyle property, or 2) tintColor property.Anyway, one last question, is it at al possible t change the colours of the top bar in a table view, right now its the default 'blue' i hate that, i want my app to look a little more interesting, can i change that? how would i do that if its possible?
Or can i change the colour of the cells??
There are two simple ways to change your navBar's style/color: 1) barStyle property, or 2) tintColor property.
P.S. Please don't edit your OP and replace it with a "fixed" post. That kinda removes the impetus of the entire thread.