在弹出式窗口中使用“锚定"和“传递"是什么? [英] What are Anchor and Passthrough used for in popover segues?

查看:100
本文介绍了在弹出式窗口中使用“锚定"和“传递"是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode中,Popover segue具有两个名为Anchor和Passthrough的连接字段.它们是用来干什么的?

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

推荐答案

这些是UIPopoverController的属性,而不是segue的属性.因此,如果您查看UIStoryboardPopoverSegue的文档,就不会找到这两个属性.

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.

锚点告诉UIPopoverController箭头指向何处.

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

直通是一系列显示UIPopoverController时用户可以与之交互的视图.

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

文档在这里: https://developer.apple.com/documentation/uikit/uipopovercontroller

,直通视图的相关部分位于此处: https://developer.apple.com/documentation/uikit/uipopovercontroller/1624654-passthroughviews

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

这篇关于在弹出式窗口中使用“锚定"和“传递"是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆