Why view is not changing
I am trying to navigate from old view to new view. But the view does not nav开发者_运维问答igate. Here is my code.
DetailsList *detailViewController = [[DetailsList alloc]initWithNibName:@"DetailsList" bundle:nil];
[self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
Thank you.
set the break point at
DetailsList *detailViewController = [[DetailsList alloc]initWithNibName:@"DetailsList" bundle:nil];
line.When debug point comes at
[self.navigationController pushViewController:detailViewController animated:YES];
line then, put ur mouse cursor on "detailViewController " variable, and check does it shows any hex values. If it shows (x0x) it means memory is not allocated .
Check few things like ....
are these line of code executed ..
are u getting
detailViewController
do your self (vc) has a navigationController
If all these are good then its hard to imagine cause ...because code here just looks fine.
check if this code is exectuted at all. Maybe the reason is somewhere else eg. in connections with a button and suchlike
精彩评论