- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在使用 CocoaPod SCLAlertView 时遇到问题。
由于某种原因,具有操作 block 功能的“addButton”不起作用。当点击 SCLAlertView 中的“注销”按钮时,操作 block 中的代码不会执行(“点击注销按钮”永远不会打印,并且该 block 中的代码也不会执行)。但是,它在我的其他应用程序中使用完全相同的代码。
无效的代码在这里:
这是 SCLAlertView addButton 不起作用的应用程序的 Podfile:
这是 SCLAlertView 正常工作的应用程序的 Podfile:
最佳答案
我早该意识到这就是问题所在。适用于 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/
我在使用 CocoaPod SCLAlertView 时遇到问题。 由于某种原因,具有操作 block 功能的“addButton”不起作用。当点击 SCLAlertView 中的“注销”按钮时,操作
当我使用第三方 SCLAlertView 时有一个问题实际上有一个问题是我想在按下按钮时执行一些操作但是只有自定义属性但我想知道操作范围有人可以帮助我出去? 最佳答案 你可以用这个 let appe
我有一个 SCLAlertView,里面有一个文本框。我怎样才能使该文本字段成为第一响应者,以便在显示警报 View 时,我可以自动开始编写而不是先单击文本字段? 最佳答案 显示警报后,您可以将这段代
我在 objective-c 中实现了 SCLAlertView。现在我们将项目移植到swift。我已在桥接头文件中添加了 SCLAlertView.h。没有问题。 我编写的代码没有任何错误,但在执行
我想显示一个 SCLAlertView 警报,几秒钟后,它将消失并重定向到其他 View Controller 。但是现在我所做的是点击“完成”按钮后,只能执行操作。任何想法?请帮忙。 这是我的代码:
我正在使用 SCLAlertView https://github.com/dogo/SCLAlertView .添加文本字段。知道如何格式化文本字段吗?想要格式化为电话号码添加的文本字段。 提前谢谢
我正在使用 SCLAlertView 创建自定义警报 View 。我的警报 View 包含一个文本字段和彩色单元格的 Collection View 问题是 UICollectionView 的 di
我正在使用这个警报库 SCLAlertView。在我的应用程序中,我有一个左侧菜单。当用户离线并且他们试图点击菜单项时,我想触发并提醒。 但由于菜单 Controller 在层次结构中位于主 Cont
我是一名优秀的程序员,十分优秀!