user2126583
user2126583

Reputation: 11

How do I present modal view as form sheet directly without any animation

How do I present modal view as form sheet directly without any animation? When I present the modal view, if it's portrait, it always come down from upper left corner, and if it is in landscape, it always come out as portrait and rotate to landscape mode(it takes about 0.2 second, quick but not pretty).

Anybody knows what is this problem? It bothers me. (I try it in a new project, it works fine, it came out directly(not from left upper corner, without rotation in landscape mode)

Help!!

Thanks

Upvotes: 1

Views: 1146

Answers (2)

Lithu T.V
Lithu T.V

Reputation: 20021

try this

viewController.modalTransitionStyle = nil;
[self presentViewController:viewController animated:NO completion:nil];

Upvotes: 4

tmdesigned
tmdesigned

Reputation: 2254

Can we see your code calling the modal view? I assume you have already added the animated tag

... presentModalViewController: YOURCONTROLLER animated: NO];

Upvotes: 0

Related Questions