Skip to content

Instantly share code, notes, and snippets.

View DisappearPing's full-sized avatar

Disappear Ping DisappearPing

  • Taoyuan,Taiwan R.O.C
View GitHub Profile
@DisappearPing
DisappearPing / iphone-popover.md
Created April 11, 2022 07:58 — forked from susanstevens/iphone-popover.md
How to Create a Popover on iPhone

How to Create a Popover on iPhone

Storyboard set up

Add your view controllers in storyboard. In the Size Inspector, change the simulated size of the popover view controller to "Freeform". This doesn't change the popover's size when you run the app, but it does make it easier to lay out subviews correctly.

storyboard

When adding the segue between view controllers, select "Present as Popover".