Thursday, December 19, 2013

iphone page jump problem



navc = [[UINavigationController alloc] init] ;/ / navc is a UINavigationController Object defined in. c
[Navc setNavigationBarHidden: YES];
[Window addSubview: navc.view];

if (self.gameHallViewController == nil) {/ / gameHallViewController is a propertity defined in. c
GameHallViewController * gameHall = [[GameHallViewController alloc] initWithNibName: @ "GameHallViewController" bundle: nil];
/ / Tab_ChinaChessController * tabc = [[Tab_ChinaChessController alloc] initWithNibName: @ "Tab_ChinaChessController" bundle: nil];
self.gameHallViewController = gameHall;
[GameHall release];
}

/ / [Self.view insertSubview: self.gameHallViewController.view atIndex: 0];

[Self.navc pushViewController: self.gameHallViewController animated: YES];

After execution is not an error, but did not jump occurred, the whole for a long time I do not know what the reason, experts pointing ~ ~

Reply:
/ / [Self.view insertSubview: self.gameHallViewController.view atIndex: 0];
Your comment has been lost ...
Reply:
Well, remove the annotations can be displayed, but the emergence of a strange phenomenon, I defined a button on page 1, and jump to the page after 2 also shows that at that very strange. Methods can not insert and push to complete the jump feature? Why am I here insert can jump, push pointing thank you but no response Hope
Reply:
I know, is the phrase used after navagationController components will work.
Reply:
The reply was deleted at the moderator 2011-03-03 08:59:09

Reply:
Useful to me thank you

No comments:

Post a Comment