gpt4 book ai didi

swift - cocoapod - 圆形菜单 - Swift - 如何与之交互

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

我发现了这个看起来很棒的椰子动物

但对于我的生活,我无法弄清楚如何与它互动。我想我对委托(delegate)感到困惑。许多人获得任何函数来返回索引或任何东西。

func circleMenu(_ circleMenu: CircleMenu, buttonWillSelected button: UIButton, atIndex: Int) {
print("button will selected: \(atIndex)")
}

实际上不返回任何东西。

感谢您的帮助。

最佳答案

我认为您忘记了在 Storyboard 中将委托(delegate)设置为您的按钮,或者以编程方式“button.delegate = self”。这将毫无问题地工作

enter image description here enter image description here

关于swift - cocoapod - 圆形菜单 - Swift - 如何与之交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41176174/

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