gpt4 book ai didi

iphone - 将 UIButton 修复在 UIScrollView 之上

转载 作者:太空狗 更新时间:2023-10-30 03:50:09 26 4
gpt4 key购买 nike

我想弄清楚如何在 UIScrollView 上叠加 UIButton。基本上用户将能够正常使用 ScrollView 。但是 ScrollView 右上角的按钮将保持在固定位置。有什么想法吗?

最佳答案

不要将 UIButton 添加为 UIScrollView 的 subview ,而是添加“self.view”

Your hierarchy should look like this. Notice how the button is now in the drop down for the scroll view. Just drag the button out

关于iphone - 将 UIButton 修复在 UIScrollView 之上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10711322/

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