Skip to content

yzhong52/ModalPresentationStyleDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modal Presentation Style Demo

In this demo app, there are three view controllers:

  • Initial View Controller
  • Presenting View Controller
  • Presented View Controller

At app lauch, Presenting View Controller is presented on top of Initial View Controller with a formSheet style. From Presenting View Controller, there are a list of buttons that will open Presented View Controller with different style options. The background of Presented View Controller has a 50% transparency so that we can see through it in some styles.

The best way to understand the difference between them is to run the app in an iPad simulator since some of the styles are identical in iPhone. Below are some examples:

  • Current Context v.s. Over Current Context.

  • Full Screen v.s. Over Full Screen

  • Page Sheet v.s. Pop Over v.s. Form Sheet

About

UIModalPresentationStyle Demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages