Thursday, January 2, 2014

Skip navigation bar navigationcontroller page

I think on the first page in the click of a button, the page jump to the next page, how can this be achieved?
Reply:
UIBarButtonItem * temporaryBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle: @ "Jump"
style: UIBarButtonItemStylePlain
target: self
action: @ selector (jump)];
self.navigationItem.rightBarButtonItem = temporaryBarButtonItem;
[TemporaryBarButtonItem release];

- (Void) jump
{
NextViewController * tempMapMode = [[MapModeViewController alloc] initWithNibName: @ "NextViewController" bundle: nil];
self.NextViewController = tempMapMode;
[TempMapMode release];
[Self.navigationController pushViewController: NextViewController animated: YES];
}
Reply:
Well, Results posted to the sub, I was used to push, Oh, thank upstairs prawn help!

No comments:

Post a Comment