Local Declaration "x" hides instance variable xcode warning

Posted by Michael Robinson on Stack Overflow See other posts from Stack Overflow or by Michael Robinson
Published on 2010-03-19T02:27:10Z Indexed on 2010/03/19 2:31 UTC
Read the original article Hit count: 601

I've been have trouble understand this problem. If I change the variable name fifthViewController the error goes away but the view controller doesn't load.

Lost. Once again it's probably something simple.

Thanks in advance.

Here is the code:

{
FifthViewController *fifthViewController = [[FifthViewController alloc] initWithNibName:@"FifthView" bundle:nil];

fifthViewController.transactionID = transactionID;
[self.navigationController pushViewController:fifthViewController animated:NO]; 
[fifthViewController release];
 }

© Stack Overflow or respective owner

Related posts about instance

Related posts about iphone