首页 > 解决方案 > 过滤器在 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: ", ")
                    }
        }

在上面的控件上寻找自定义

标签: iosswifteureka-forms

解决方案


https://gist.github.com/gotelgest/cf309f6e2095ff22a20b09ba5c95be36

这可能会有所帮助,因为它适用于推送行。搜索在此处实现推送行。在这里稍加修改就可以找出您的解决方案。


推荐阅读