Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Form Sheet popup for iPad (iOS 8.1)

I want to make very basic popup window by using Swift (8.1) with presentation type "Form Sheet", it should be a window that float at the middle of the screen without tales.

enter image description here

I created two View Controllers, one button and connect the button from one controller to another with parameter "Present As Popover". Second view controller was selected as "Form Sheet", but the result is wrong:

enter image description hereenter image description here

Why?

like image 616
Dima Deplov Avatar asked Nov 02 '14 16:11

Dima Deplov


1 Answers

Don't present it as a Popover. You want the segue to be Modal and present it as a form sheet. In the storyboard, click on the segue and change the "Segue" to "Modal"

Storyboard Segue Settings

EDIT

In my haste, I used an Objective-C project for setting up an example instead of Swift. Below is what the Storyboard Segue should be in Swift using the "Present Modally" Adaptive Segue.

Storyboard Segue

like image 52
Ron Fessler Avatar answered Sep 28 '22 05:09

Ron Fessler