laaaa
laaaa

Reputation: 119

Switching Views with no animation - Cocoa Touch

I want to switch views but with no animation such as a cross dissolve, so it goes to a different view with no transition. Just switch straight to the view.

This is the current code:

-(IBAction)goNext:(id)sender; {
    NwxtiewController *second = [[NextViewController alloc] initWithNibName:nil bundle:nil];

    second.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentModalViewController:second animated:YES];
}

Upvotes: 0

Views: 96

Answers (1)

jtbandes
jtbandes

Reputation: 118781

Well, try using animated:NO...

Upvotes: 5

Related Questions