ios - Displaying the Initial View Controller as a Form Sheet -


What is the correct way to display the initial view controller as a form sheet? Background: My initial screen is a login controller that after logging in to the map when the user logs out, it presents the login screen as an entry sheet, but when the application launches It's in full screen.

UPDATE: I used the following code to make it work: UIViewController * loginViewController = [self.storyboard instantiateViewControllerWithIdentifier: @ "LoginController"]; LoginViewController.modalPresentationStyle = UIModal PresentationFormatate; [Self-current ViewController: Animated login viewer controller: not complete: zero];

Show an empty view controller and display your login controller as a form sheet .

  // In your initial view controller - (zero) viewDidload {loginviewcroller * log inview watcher controller = // you can login login login login viewcontroller.modalPresentationStyle = UIModalPresentationFormSheet; [Self-Current ViewController: Animated ViewController: Not Complete: Zero]}    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

python - 'NoneType' object is not callable using 'find_all' in BeautifulSoup -