iOS - presentViewController like the image (Open iMessages app store in Messages) <p><img src="https://i.stack.imgur.com/MZnz9m.jpg" alt="Open iMessages app store in Messages Screenshot"></p> <p>I want present a <code>UINavigationController</code> like the image above, I use</p> <pre><code>nvc.modalPresentationStyle = UIModalPresentationFormSheet; </code></pre> <p>But I can't change the controller's size.</p> <p>This is how I did:</p> <pre><code>UIViewController *vc = [[UIViewController alloc] init]; vc.view.backgroundColor = [UIColor grayColor]; UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc]; nvc.modalPresentationStyle = UIModalPresentationFormSheet; nvc.view.frame = CGRectInset(self.view.bounds, 20, 20); [self presentViewController:nvc animated:YES completion:nil]; </code></pre> <p>But the present viewController is still full screen.</p>