gpt4 book ai didi

swift - `enablesMarqueeWhenAncestorFocused` 是做什么的?

转载 作者:行者123 更新时间:2023-11-28 13:59:38 24 4
gpt4 key购买 nike

我正在尝试在 Apple TV 上的收藏 View 中的元素之间滑动时应用视差效果。我找不到任何合理的信息如何将 UILabel 中的 enablesMarqueeWhenAncestorFocused 更改为 true 影响选择。我在 UIImageView 中使用“Adjust on ancestor focus”并且它有效。

最佳答案

当文本放不下标签时,它会水平滚动文本。参见 https://developer.apple.com/videos/play/wwdc2018-208/?time=1514

关于swift - `enablesMarqueeWhenAncestorFocused` 是做什么的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53671979/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com