gpt4 book ai didi

ios - SCLAlertView 添加按钮问题

转载 作者:行者123 更新时间:2023-11-29 01:01:26 28 4
gpt4 key购买 nike

我在使用 CocoaPod SCLAlertView 时遇到问题。

由于某种原因,具有操作 block 功能的“addButton”不起作用。当点击 SCLAlertView 中的“注销”按钮时,操作 block 中的代码不会执行(“点击注销按钮”永远不会打印,并且该 block 中的代码也不会执行)。但是,它在我的其他应用程序中使用完全相同的代码。

无效的代码在这里:

enter image description here

这是 SCLAlertView addButton 不起作用的应用程序的 Podfile:

enter image description here

这是 SCLAlertView 正常工作的应用程序的 Podfile:

enter image description here

最佳答案

我早该意识到这就是问题所在。适用于 SCLAlertView 的 CocoaPod 版本是 0.8.2,而我的版本停留在 0.8.1,但我没有意识到。只需将其指定为具有以下内容的 pod 版本即可:

pod 'SCLAertView-Objective-C', '~> 0.8.2'

关于ios - SCLAlertView 添加按钮问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36949706/

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