LoginSignup
0
0

More than 3 years have passed since last update.

How to show view controller in full screen

Last updated at Posted at 2020-03-22

Q:
when I open a view controller in following way, it don't be shown in full screen

let viewController = UIViewController()
present(viewController, animated: true, completion: nil)

A:

just add the following code.

let viewController = UIViewController()

viewController.modalPresentationStyle = .fullScreen

present(viewController, animated: true, completion: nil)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0