开发者

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.


  1. set the break point at DetailsList *detailViewController = [[DetailsList alloc]initWithNibName:@"DetailsList" bundle:nil]; line.

  2. 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 ....

  1. are these line of code executed ..

  2. are u getting detailViewController

  3. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜