I have several view which I show and dismiss, but it is visible when a view moves onto screen and is dismissed from the screen.
How do I set it to just appear without any animation?
I have tries the animation:NO, it doesnt change anything.
Are there special calls for different animation types?
Upvotes: 0
Views: 84
Reputation: 1426
If you are wanting to present a view controller modally (ie, without using a UINavigationController
) you would use the following:
-(IBAction)myButtonThatDisplaysOtherView:(id)sender {
//where myOtherViewController is a UIViewController...
[self presentModalViewController:myOtherViewController animated:NO];
...
}
To remove from the screen use the following:
[self dismissModalViewControllerAnimated:NO];
Upvotes: 3