Skip to content

Instantly share code, notes, and snippets.

View ravanar-sk's full-sized avatar
🎯
Focusing

Saravana Kumar K R ravanar-sk

🎯
Focusing
View GitHub Profile
@ravanar-sk
ravanar-sk / iphone-popover.md
Created November 16, 2021 06:39 — 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".