ios - 过滤器在 swift 中将搜索栏添加到 Eureka 表单构建器中的 MultiplePushRow
问题描述
我正在使用顶级表单构建器框架Eureka之一处理 iOS 表单我正在寻找关于MultipleSelectorRow
控件的过滤器/搜索解决方案,目前它没有该功能。有人定制过这个插件吗?怎么办?
Import Eureka
MultipleSelectorRow<String>() {
$0.title = "Tags"
$0.selectorTitle = "Choose"
$0.options = ["Option 1", "Option 2", "Option 3", "Option 4"]
$0.tag = "strTags"
}.onPresent { from, to in
to.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done, target: from, action: #selector(self.multipleSelectorDone(_:)))
} .cellUpdate { cell, row in
if (row.value != nil) {
cell.detailTextLabel?.text = row.value!.joined(separator: ", ")
}
}
在上面的控件上寻找自定义
解决方案
https://gist.github.com/gotelgest/cf309f6e2095ff22a20b09ba5c95be36
这可能会有所帮助,因为它适用于推送行。搜索在此处实现推送行。在这里稍加修改就可以找出您的解决方案。
推荐阅读
- c++ - E0145 成员可能未初始化- cmake - VS2017
- ios - 如何将 R.swift 用于字符串和颜色
- windows - 以编程方式获取驱动程序锁定内存
- sqlite - 使用 BLOB 和 TEXT 时的房间意外行为
- java - java.io.IOException:无法协商 SSL 事务,没有密钥库?在 JMeter 5.0 中
- java - 从 java 运行外部命令时处理泄漏
- python - 迁移被重复创建
- java - 在 Cordova-Android 上扫描网络打印机
- dynamics-crm - MS CRM-想要根据用户级别在 MS CRM 365 中自定义队列查找
- php - 如何将 SuiteCRM Web 与 Php.. 集成到潜在客户表单?