Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are Anchor and Passthrough used for in popover segues?

In Xcode, a Popover segue has two connection fields named Anchor and Passthrough. What are they used for? image

like image 336
Prabhu Natarajan Avatar asked Sep 04 '13 13:09

Prabhu Natarajan


2 Answers

These are properties of the UIPopoverController, not the segue. Thats why if you look at the documentation for the UIStoryboardPopoverSegue, you won't find these two properties.

The anchor is telling the UIPopoverController where to point its arrow.

The passthrough is an array of views that the user can interact with while the UIPopoverController is displayed.

The documentation is here: https://developer.apple.com/documentation/uikit/uipopovercontroller

and the section going over the passthrough views is here: https://developer.apple.com/documentation/uikit/uipopovercontroller/1624654-passthroughviews

like image 119
Joseph Landry Avatar answered Oct 21 '22 06:10

Joseph Landry


UIPopoverController seems to have been deprecated recently. However, I still see Anchor and Passthrough fields in the storyboard segue inspector.

like image 2
16cups Avatar answered Oct 21 '22 07:10

16cups